Update an SMS
Update an SMS's name, folder, content, recipient, or sender. You only need to send the fields you want to change; Customer.io keeps the current value of any field you leave out.
If the SMS is linked to a workflow, you need to publish your changes so your audience receives the latest content.
- Type: string Format: uuididrequired
The UUID of the SMS.
Send at least one of these properties.
- Type: stringcontent
The new message, written as SMS markup. See the
contentfield on Create an SMS for the format. If you pass an empty string, Customer.io clears the content, and you'll need to add content again before you can publish the SMS. - Type: stringnamemin length:1max length:191
A new friendly name for the SMS.
- Type: string | null Format: uuidparent
_folder _id UUID of the folder you want to move the SMS into. Pass
nullto move the SMS to the root level. - Type: stringrecipient
New liquid that resolves to the phone number of the person you're messaging, like
{{customer.phone}}. If you pass an empty string, Customer.io clears the recipient and sends to{{customer.phone}}. - Type: integer | null Format: int64sender
_id The ID of the sender identity to send the SMS from. Pass
nullto clear the sender; you'll need to set one again before you can publish the SMS.
- 204
SMS updated, no content returned
- application/json
- application/json
- application/json
- application/json
{
"content": "<x-sms><x-sms-body>Hi {{customer.first_name}}, your order is out for delivery.</x-sms-body></x-sms>",
"name": "Order shipped",
"parent_folder_id": null,
"recipient": "{{customer.phone}}",
"sender_id": 2
}
SMS updated, no content returned