Replace Notification Template
Changed onReplaces a notification template in full, so send every field rather than only the ones you want changed. Publish separately to make it live.
Request
- Base URLhttps://api.courier.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Template ID (nt_ prefix).
Request body
Example request
{
"notification": {
"content": {
"elements": [
{
"channel": "email"
}
]
}
}
}Response
Example response
{
"content": {
"elements": [
{
"channel": "email"
}
]
}
}Changes
- breaking
added
subschema #2: NotificationTemplateAliasWriteFieldsto therequest propertyallOflist - breaking
the
request property type changed fromobjectto no type - breaking
added
subschema #1subschema #3subschema #7to the///response propertyoneOflist for the response status - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - info
added
subschema #2: NotificationTemplateResponseFieldsto the response bodyallOflist for the response status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
removed
subschema #1subschema #3subschema #7from the///response propertyoneOflist for the response status
- breaking
- info
api tag
Templatesadded - info
api tag
Notification Templatesremoved
- info