PUT
/api/v1/templates/{id}Replace template attributes
Replaces template attributes for the specified template. Supply the template identifier in id and the attributes to set in data, using the defined fields for assigns, body content, name, or styles.
idstringrequired
The identifier of the template to replace.
Template attributes to replace, supplied in a data object.
dataobjectoptional
The template attributes to set.
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 replace. The data object accepts only the defined template fields: assigns, html_body, mjml_body, name, styles, and text_body.