Use a template to send email to a user

post

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

Sends email to users with the specified template. Supports a list of study role ids in addition to email addresses. The recipients are restricted to the sites they have access to. The template is stored in the configuration PDB.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : emailAddresses
Type: array
Show Source
Nested Schema : placeHolderImageMap
Type: object
Additional Properties Allowed
Show Source
Nested Schema : placeHolderValueMap
Type: object
Additional Properties Allowed
Show Source
Nested Schema : studyRoleIds
Type: array
Show Source
Nested Schema : users
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success.

400 Response

Bad request.
Body ()
Root Schema : NotificationResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : result
Type: object
Nested Schema : Object
Type: object
Title: Object
Object with error details information.

500 Response

Internal server error.
Body ()
Root Schema : NotificationResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : result
Type: object
Nested Schema : Object
Type: object
Title: Object
Object with error details information.
Back to Top