Update a Message resource


Updates the body of a Message resource. Send a POST request to a Message resource's URI containing the updated parameters.

This action is primarily used to redact Message content. To redact a Message resources's Body, send a POST request to the Message resource's URI and set the Body parameter as an empty string: "". This redacts the Body of a message while keeping the other Message resource properties intact.

Parameters

Parameters in REST API format
account_sid

Path

POST sid<AC> Not PII

The SID of the Account that created the Message resources to update.

sid

Path

POST sid<MM> Not PII

The SID of the Message resource to be updated.

body

Optional

POST string PII MTL: 30 DAYS

The new body of the Message resource. To redact the text content of a Message, this parameter's value must be an empty string
status

Optional

POST ienum:update_status Not PII

Set as canceled to prevent a not-yet-sent Message from being sent. Can be used to cancel sending a scheduled Message (Messaging Services only).