Update Template
PATCHhttps://a.klaviyo.com/api/templates/{id}
Update a template with the given template ID. Does not currently update drag & drop templates.
- Revision header
revision: 2025-01-15required- Scopes
templates:write- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
The ID of template
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2025-01-15
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
The ID of template
Show 4 fields
The name of the template
The HTML of the template
The plaintext of the template
The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo
Responses
200Success
Content type: application/vnd.api+json
Show 4 fields
The ID of template
Show 7 fields
The name of the template
editor_typehas a fixed set of values:- SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template
- SIMPLE: A rich text editor template
- CODE: A custom HTML template
- USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor
The rendered HTML of the template
The template plain_text
The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo
The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json