Bearer token for API authentication. Format: Bearer {{apiToken}}
Query Parameters
The ID of the template to update.
{
"name": <template_name>,
"description": <description>,
"tagNames": [
<tagName>
],
"variables": [
{
"name": <variable_name>,
"defaultValue": <default_value>
}
]
}
Body Parameters
Specifies the name of the template.
A brief description of the template.
A list of tag names associated with the template.
A list of variables used in the template.
Channel-specific configurations for the template.
{
"name": "Sample_Template1",
"description": "sample template description",
"tagNames": [
"sample_tag_1",
"sample_tag_2"
],
"variables": [
{
"name": "var1",
"defaultValue": "var1 value"
}
],
"configurations": {
"SMS": {
"body": "sample message body",
"channel": "SMS",
"isFlash": false,
"isUnicode": false
},
"EMAIL": {
"subject": "test email subject",
"channel": "EMAIL",
"body": "<p>test body</p>",
"attachments": [],
"isRawHTML": false,
"isPlainText": false
}
}
}
Response
List of channel-specific template metadata.Channel name (e.g., “SMS”, “EMAIL”).
Embedded configuration object.
The error code (e.g., BAD_REQUEST
).
A human-readable error message.
{
"data": {
"templateId": "UUID", // Template ID
"templateName": "string", // Template name
"draftVersionId": "UUID", // Draft version ID
"channelTemplateList": [
{
"id": "UUID", // Channel template ID
"channel": "string", // Channel type
"configuration": {
"channel": "string" // Channel type
},
"templateVersionId": "UUID" // Template version ID
},
{
"id": "UUID",
"channel": "string",
"configuration": {
"channel": "string"
},
"templateVersionId": "UUID"
}
]
},
"error": null,
"errors": null,
"meta": null
}
Status Codes
200
- OK
400
- BAD REQUEST
401
- UNAUTHORISED
404
- NOT FOUND