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
-
templatetype(required): string
Name of template to use to send email. Valid values are taken from email template configuration database.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
emailAddresses: array
emailAddresses
-
placeHolderImageMap: object
placeHolderImageMap
Additional Properties Allowed: additionalProperties
-
placeHolderValueMap: object
placeHolderValueMap
Additional Properties Allowed: additionalProperties
-
siteId: string
-
studyRoleIds: array
studyRoleIds
-
subject(required): string
-
users: array
users
Response
Supported Media Types
- application/json
200 Response
Success.
400 Response
Bad request.
Root Schema : NotificationResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData
Title:
ErrorResponseData
Error Response Details Information -
result: object
result
-
status: string
Nested Schema : ErrorResponseData
Type:
object
Title:
ErrorResponseData
Error Response Details Information
Show Source
-
details: object
Object
Title:
Object
Object with error details information. -
errorCode: string
Error code which is stored in ErrorCode enum. Example : C1-003Example:
C1-003
-
errorMessage: string
Error message which is stored in service property file. Example : Cannot modify object after a study version has been approvedExample:
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.
Root Schema : NotificationResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData
Title:
ErrorResponseData
Error Response Details Information -
result: object
result
-
status: string
Nested Schema : ErrorResponseData
Type:
object
Title:
ErrorResponseData
Error Response Details Information
Show Source
-
details: object
Object
Title:
Object
Object with error details information. -
errorCode: string
Error code which is stored in ErrorCode enum. Example : C1-003Example:
C1-003
-
errorMessage: string
Error message which is stored in service property file. Example : Cannot modify object after a study version has been approvedExample:
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.