patch https://a.klaviyo.com/api/campaign-messages//
Update a campaign message
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
Responses
Update a campaign message
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
xxxxxxxxxx
31curl --request PATCH \
--url https://a.klaviyo.com/api/campaign-messages/id/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2024-02-15' \
--data '
{
"data": {
"type": "campaign-message",
"attributes": {
"label": "My message name",
"content": {
"subject": "Buy our product!",
"preview_text": "My preview text",
"from_email": "store@my-company.com",
"from_label": "My Company",
"reply_to_email": "reply-to@my-company.com",
"cc_email": "cc@my-company.com",
"bcc_email": "bcc@my-company.com"
},
"render_options": {
"shorten_links": true,
"add_org_prefix": true,
xxxxxxxxxx
58}
{
"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",
"reply_to_email": "reply-to@my-company.com",
"cc_email": "cc@my-company.com",
"bcc_email": "bcc@my-company.com"
},
"send_times": [
{
"datetime": "2022-11-08T00:00:00+00:00",
"is_local": true
}
],