post https://a.klaviyo.com/api/campaign-message-assign-template/
Creates a non-reusable version of the template and assigns it to the message.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
Responses
Creates a non-reusable version of the template and assigns it to the message.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
xxxxxxxxxx
16curl --request POST \
--url https://a.klaviyo.com/api/campaign-message-assign-template/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2023-06-15' \
--data '
{
"data": {
"type": "campaign-message",
"attributes": {
"template_id": "RipRmi"
}
}
}
'
xxxxxxxxxx
30}
{
"data": {
"type": "campaign-message",
"id": "string",
"attributes": {
"label": "string",
"channel": "string",
"content": {
"subject": "Buy our product!",
"preview_text": "My preview text",
"from_email": "store@my-company.com",
"from_label": "My Company",
"template_id": "RipRmi",
"template_name": "My email template"
},
"send_times": [
{
"datetime": "2022-11-08T00:00:00",
"is_local": true
}
],
"created_at": "2022-11-08T00:00:00",