PATCH/api/v1/templates/{id}

Update template attributes

Updates selected template attributes without replacing fields you omit. Supply the template identifier in id and include any attributes to change in data, such as name, styles, or body content.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
idstringrequired
The identifier of the template to update.

Template attributes to update, supplied in a data object.

dataobjectoptional
The template attributes to change.

1 status code
200Returns the updated template object, including its identifier, name, type, body content, content slots, styles, assigns, and timestamps.
dataobjectoptional

Error handling

The id path parameter must identify the template to update. The data object accepts only the defined template fields: assigns, html_body, mjml_body, name, styles, and text_body.