Broadcasts
Update a broadcast action
Update the contents of a broadcast action, including the body of messages or HTTP requests.
NOTE You cannot manage content made with Design Studio with this endpoint. Use the Design Studio APIs instead.
put/v1/broadcasts/{broadcast_id}/actions/{action_id}
Request body
Example request
{
"id": 96,
"broadcast_id": 2,
"deduplicate_id": "15:1492548073",
"name": "Opening Message",
"created": 1552341937,
"updated": 1552341937,
"language": "fr",
"from": "sentFrom@example.com",
"from_id": 1,
"reply_to": "replyto@example.com",
"reply_to_id": 38,
"recipient": "{{customer.email}}",
"subject": "Did you get that thing I sent you?"
}Response
Returns the updated broadcast action.
Example response
{
"action": {
"id": 96,
"broadcast_id": 2,
"deduplicate_id": "15:1492548073",
"name": "Opening Message",
"created": 1552341937,
"updated": 1552341937,
"language": "fr",
"from": "sentFrom@example.com",
"from_id": 1,
"reply_to": "replyto@example.com",
"reply_to_id": 38,
"recipient": "{{customer.email}}",
"subject": "Did you get that thing I sent you?",
"headers": "[{\"name\":\"X-Mailgun-Tag\",\"value\":\"my-cool-tag\"},{\"name\":\"X-Custom-Header\",\"value\":\"custom-value\"}]"
}
}Changes
Changed in 1 of the 3 revisions of this API.1
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○