Messages
Update a Message
Update a message body after it has been sent. Currently, the only supported update is redacting the message by setting the body to an empty string. Messages that are still in progress (queued or initiated status) cannot be updated.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging.
Learn more about API scopes.
post/Accounts/{AccountSid}/Messages/{Sid}
Path parameters
AccountSidstring uuid required
Universal Unique Identifier.
The unique identifier of the project that sent or received this message.
Sidstring uuid required
Universal Unique Identifier.
A unique ID that identifies this specific message.
Response
The request has succeeded.
Example response
{
"api_version": "2010-04-01",
"body": "Hello World!",
"num_segments": 1,
"num_media": 1,
"date_created": "Mon, 13 Aug 2018 21:38:46 +0000",
"date_sent": "Mon, 13 Aug 2018 21:38:46 +0000",
"date_updated": "Mon, 13 Aug 2018 21:38:46 +0000",
"error_code": "30001",
"error_message": "Queue overflow",
"from": "+15551234567",
"price": 0.005,
"price_unit": "USD",
"to": "+15557654321",
"uri": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527.json",
"subresource_uris": {
"media": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527/Media.json"
}
}