Skip to main content
Templates

Change a message template

Changes a template's name, text or language. Send only the fields to change. Changing the text of a template live automations send needs a key with automations. Needs a key with the sparrow.write scope. Needs the key's creator to hold the TemplatesEdit permission.

PATCH
/templates/{id}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

idstringrequired

The template id.

Body

application/json
bodystring

Template text with {Group.Field} variables, up to 5,000 characters.

languagestring

Language code of the template, such as en. Default en.

namestring

Template name, up to 200 characters.

Response

application/json

Success

dataany
metaobject