Update Campaign Message
PATCHhttps://a.klaviyo.com/api/campaign-messages/{id}
Update a campaign message
- Revision header
revision: 2026-07-15required- Scopes
campaigns:write- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
The message ID to be retrieved
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-07-15
Request body
Content type: application/vnd.api+jsonrequired
Show 4 fields
The message ID to be retrieved
Show 1 field
The contents and settings of the campaign message
Option 1:
EmailMessageDefinitionThe label or name on the message
Show 7 fields
The subject of the message
Preview text associated with the message
The email the message should be sent from
The label associated with the from_email
Optional Reply-To email address
Optional CC email address
Optional BCC email address
Option 3:
MobilePushMessageStandardDefinitionUpdateThe key-value pairs to be sent with the push notification
Enter valid JSON. Until you do, the example request uses the example value.
Show 4 fields
The title of the message
The message body
The dynamic image to be used in the push notification
Action buttons for the push notification (max 3, positions 0-indexed with no gaps)
Show 6 fields
The button label (max 40 characters)
The action type: open_app, deep_link, open_url, or dismiss
The display order of the button (0-indexed). If omitted, inferred from the button's order in the list.
Enter a whole number. Until you do, the example request uses the example value.
URL for deep_link or open_url action types (max 2048 characters). Used as a fallback on platforms without a more specific ios_deep_link or android_deep_link.
iOS-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on iOS.
Android-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on Android.
Show 5 fields
Option 1:
PushOnOpenApp
Only supported on iOS.
Option 1:
MobilePushBadgeWhether to display a badge on the app icon
Badge options
Option 2:
MobilePushNoBadgeWhether to display a badge on the app icon
Only supported on iOS.
Whether to send only to the profile's primary device.
Which device platform(s) to send to: all, ios, or android.
The type of notification to send
Responses
200Success
Content type: application/vnd.api+json
Show 5 fields
The message ID
Show 4 fields
Option 1:
EmailMessageDefinitionThe label or name on the message
Show 7 fields
The subject of the message
Preview text associated with the message
The email the message should be sent from
The label associated with the from_email
Optional Reply-To email address
Optional CC email address
Optional BCC email address
Option 2:
SMSMessageDefinitionOption 3:
MobilePushMessageStandardDefinitionThe type of notification to send
Show 4 fields
The title of the message
The message body
The dynamic image to be used in the push notification
Action buttons for the push notification
Show 6 fields
The button label (max 40 characters)
The action type: open_app, deep_link, open_url, or dismiss
The display order of the button (0-indexed). If omitted, inferred from the button's order in the list.
URL for deep_link or open_url action types (max 2048 characters). Used as a fallback on platforms without a more specific ios_deep_link or android_deep_link.
iOS-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on iOS.
Android-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on Android.
The key-value pairs to be sent with the push notification
Show 5 fields
Option 1:
PushOnOpenApp
Only supported on iOS.
Option 1:
MobilePushBadgeWhether to display a badge on the app icon
Badge options
Option 2:
MobilePushNoBadgeWhether to display a badge on the app icon
Only supported on iOS.
Whether to send only to the profile's primary device.
Which device platform(s) to send to: all, ios, or android.
The list of appropriate Send Time Sub-objects associated with the message
The datetime when the message was created
The datetime when the message was last updated
Show 3 fields
Show 1 field
Response-level metadata
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json