Skip to main content
PUT
Update Template (v1)

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
hash_id
string

Current MD5 hash of the template to update, used to verify the correct version is being modified (required)

Example:

"49c538d097ad6437413b83711c9f61e8"

template
object

Template object whose hash_id is used as a fallback to identify the template to update when no top-level hash_id is provided.

Response

Returns {success: true, hash_id, msg, template}; msg varies: "No Edits made...", "Created an Edited Copy...", or "Created an Edited Copy of Template..."

success
boolean

Always true on success

hash_id
string

Hash ID (present when no edits were made)

msg
string

Outcome description, e.g. 'Created an Edited Copy of Template 123. New Template ID: 456' or 'No Edits made for template 123'

template
object

The updated or newly created template object