Automations
Update an automation action
Changed onUpdate the contents of an automation action, including the body of messages and HTTP requests.
NOTE: You can't manage content made with Design Studio with this endpoint. Use the Design Studio APIs instead.
put/v1/campaigns/{campaign_id}/actions/{action_id}
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/campaigns/{campaign_id}/actions/{action_id}
- AuthHTTP bearer
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?",
"campaign_id": 5,
"parent_action_id": 1
}Response
Returns the updated automation 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?",
"campaign_id": 5,
"parent_action_id": 1,
"multi_language_branch_action_id": 23,
"headers": "[{\"name\":\"X-Mailgun-Tag\",\"value\":\"my-cool-tag\"},{\"name\":\"X-Custom-Header\",\"value\":\"custom-value\"}]"
}
}Changes
- info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info
- info
added the media type
application/jsonfor the response with the status
- info