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](/docs/platform/your-signalwire-api-space).
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing
the word Basic followed by a space and a base64-encoded string of project_id:token.
The project ID will be used as the username and the API token as the password.
Example:
```
Authorization: Basic base64(project_id:token)
```
Path parameters
AccountSid
The unique identifier of the project that sent or received this message.
Sid
A unique ID that identifies this specific message.
Request
This endpoint expects an object.
Body
The new body of the message. Must be an empty string to redact the message content.
Response
The request has succeeded.
account_sid
The unique identifier of the project that sent or received this message.
api_version
The version number of the SignalWire cXML REST API used to handle this message.
body
The text of the message. Up to 1600 characters long. May be null if filtered for spam.
num_segments
The number of segments that make up the entire message.
num_media
The number of media files that were included with the message.
date_created
The date and time the message was created in RFC 2822 format.
date_sent
The date and time the message was sent in RFC 2822 format, or null if not yet sent.
date_updated
The date and time the message was last updated in RFC 2822 format.
direction
The direction of the message.
Allowed values:
error_code
If an error has occurred on the message, the error code will give you a specific code, or null if no error.
error_message
A human readable description of the error that occurred, or null if no error.
from
The phone number in E.164 format that sent the message.
price
The cost of the individual message billed to your project, or null if not yet calculated.
price_unit
The currency in which price is charged as.
sid
A unique ID that identifies this specific message.
status
Current status of the message.
to
The phone number in E.164 format that received the message.
messaging_service_sid
If a number group was used when sending an outbound message, the number group's ID will be present, or null otherwise.
uri
The URI of this particular message.
subresource_uris
The URIs for any subresources associated with this message.