Update a message template

Partially updates an existing Message Template. Only the fields provided in the request body are changed; omitted fields are left unchanged.

Content validation: If content is provided, all Handlebars tokens are re-validated. Unknown tokens return a 422 with the list of offending token names.

Settings merge: When settings is provided, the new values are merged into the existing settings object. The internal content_state key is automatically stripped and never returned.

Path Params
integer
required

The ID of the message template to update.

Query Params
string
required

The API key provided for your application.

Body Params

All fields are optional. Only provided fields are updated.

string

New display name.

string

New content in Handlebars format. All tokens are re-validated if this field is present.

string
enum

New channel type.

Allowed:
string

New sub-classification.

string

New category.

string

New locale tag.

settings
object

Settings to merge into the existing settings object. content_state is always stripped.

Responses

401

Missing, invalid, or inactive API key.

404

Template not found or does not belong to the company.

500

Internal server error; the response may include an exception message.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json