Transactional
Update a transactional message
Update the body of a transactional email. This fully overwrites your existing transactional message. We'll use your updated content for any future transactional requests (/v1/send/email), so make sure that you test your message before you update it.
NOTE: You cannot manage content made with Design Studio with this endpoint. Use the Design Studio APIs instead.
put/v1/transactional/{transactional_id}/content/{content_id}
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/transactional/{transactional_id}/content/{content_id}
- AuthHTTP bearer
Request body
Example request
{
"id": 96,
"name": "Receipt",
"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 transactional message.
Example response
{
"content": [
{
"id": 96,
"name": "Receipt",
"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
No recorded changes to this operation across all 30 revisions of this API.