curl --request PATCH \
--url https://apix.spotzee.com/api/client/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"data": {
"from": {
"name": "<string>",
"address": "jsmith@example.com"
},
"cc": "jsmith@example.com",
"bcc": "jsmith@example.com",
"reply_to": "jsmith@example.com",
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"mjml": "<string>"
}
}
'{
"id": 158,
"project_id": 123,
"campaign_id": 24,
"type": "email",
"locale": "en-AU",
"data": {},
"created_at": "<string>",
"updated_at": "<string>",
"name": "<string>"
}Updates a template’s name and channel-specific data. Channel cannot be changed once set; the request body must use the same type as the existing template.
curl --request PATCH \
--url https://apix.spotzee.com/api/client/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"data": {
"from": {
"name": "<string>",
"address": "jsmith@example.com"
},
"cc": "jsmith@example.com",
"bcc": "jsmith@example.com",
"reply_to": "jsmith@example.com",
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"mjml": "<string>"
}
}
'{
"id": 158,
"project_id": 123,
"campaign_id": 24,
"type": "email",
"locale": "en-AU",
"data": {},
"created_at": "<string>",
"updated_at": "<string>",
"name": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.
Numeric template identifier.
158
Update an existing template. The channel type cannot be changed once set.
email Email template payload — supports plain-text, HTML, and MJML bodies.
Hide child attributes
The updated template.
A localised, channel-specific message body bound to a campaign.
Numeric template identifier.
158
Identifier of the owning project.
Identifier of the campaign this template belongs to.
24
Delivery channel a template is bound to.
email, text, push, webhook, in_app "email"
BCP-47 locale this template is authored in.
"en-AU"
Optional human-readable template name.
Was this page helpful?