V3.0

post

/ec-notifications-svc/rest/v3.0/email/{templatetype}

Sends email to users with the specified template. Supports a list of study role IDs in addition to email addresses. Relative to v2.0: Support studyRoleId to send notifications.

Request

Path Parameters
  • Name of the template to use to send email. Valid values are taken from email template configuration database, Allowed Values: CompletedTrainingTemplate, DefaultTrainingTemplate_L10n, CompletedTrainingTemplate_L10n, WithoutStudyTrainingTemplate, AssignedTrainingTemplate
    Example:
    DefaultTrainingTemplate_L10n
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Supporting study role based targeting in addition to direct email addresses and users.
Show Source
Nested Schema : emailAddresses
Type: array
Additional recipient email addresses not associated with users
Show Source
  • Additional recipient email addresses not associated with users
    Example: ["john.doe@oracle.com"]
Example:
[
    "john.doe@oracle.com"
]
Nested Schema : placeHolderImageMap
Type: object
Map of placeholder image variables to URLs or resource identifiers
Example:
{
    "image5":"NOTIFICATION.EMAIL.IMAGE5",
    "image3":"NOTIFICATION.EMAIL.IMAGE3",
    "image4":"NOTIFICATION.EMAIL.IMAGE4",
    "image1":"NOTIFICATION.EMAIL.IMAGE1",
    "image2":"NOTIFICATION.EMAIL.IMAGE2"
}
Nested Schema : placeHolderValueMap
Type: object
Map of placeholder variables to be replaced in the template body
Example:
{
    "userTrainingDetails":" ",
    "redirectUrl":"",
    "username":"system",
    "studyName":"AutomationStudy"
}
Nested Schema : studyRoleIds
Type: array
List of study role identifiers to target (UUID, 32-character uppercase hexadecimal string)
Show Source
  • List of study role identifiers to target (UUID, 32-character uppercase hexadecimal string)
    Example: ["1BC29B36F5D64B1B95F4BD32CEA481BE","8F14E45FC1EA167A5A36D5DD4BEA2543"]
Example:
[
    "1BC29B36F5D64B1B95F4BD32CEA481BE",
    "8F14E45FC1EA167A5A36D5DD4BEA2543"
]
Nested Schema : users
Type: array
List of recipient user identifiers (UUID, 32-character uppercase hexadecimal string)
Show Source
  • List of recipient user identifiers (UUID, 32-character uppercase hexadecimal string)
    Example: ["C5770247BEF54CE0923B7C7CA3B659C8","DBF0480DD86446CE8482BE016726393C"]
Example:
[
    "C5770247BEF54CE0923B7C7CA3B659C8",
    "DBF0480DD86446CE8482BE016726393C"
]
Examples

Back to Top

Response

Supported Media Types

202 Response

Request processed successfully, check the result

400 Response

Error in request, check the request
Body ()
Root Schema : NotificationResponse
Type: object
Standard wrapper for API responses. Contains the request processing status, the result payload for successful requests, and error details when a request fails.
Show Source
  • Error Response
    Read Only: true
    Standard error body containing code, message and optional details.
  • result
    Read Only: true
    Result payload for the request. The concrete type depends on the endpoint and is described in the corresponding API documentation.
  • Read Only: true
    Allowed Values: [ "success, Failed" ]
    Status of the request processing. SUCCESS indicates the request was processed without errors. Any other value indicates failure.
    Example: success
Nested Schema : Error Response
Type: object
Read Only: true
Standard error body containing code, message and optional details.
Show Source
  • details
    Read Only: true
    Optional additional details about the error for diagnostics.
  • Read Only: true
    Application-specific error code representing the failure reason.
    Example: VALIDATION_ERROR
  • Read Only: true
    Human-readable message describing the error.
    Example: Request payload validation failed
Nested Schema : result
Type: object
Read Only: true
Result payload for the request. The concrete type depends on the endpoint and is described in the corresponding API documentation.
Nested Schema : details
Type: object
Read Only: true
Optional additional details about the error for diagnostics.
Examples

Back to Top