To redact a message-body from a post-flight message record
A Message resource represents an inbound or outbound message.
To redact a message-body from a post-flight message record, post to the message instance resource with an empty body
Path parameters
-
The SID of the Account that created the Message resources to update.
-
The Twilio-provided string that uniquely identifies the Message resource to update.
POST /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Body=string&Status=canceled'
Request example
{
"Body": "string",
"Status": "canceled"
}
Request examples
{
"Body": "string",
"Status": "canceled"
}
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"body": "string",
"date_created": "string",
"date_sent": "string",
"date_updated": "string",
"direction": "inbound",
"error_code": 42,
"error_message": "string",
"from": "string",
"messaging_service_sid": "string",
"num_media": "string",
"num_segments": "string",
"price": "string",
"price_unit": "string",
"sid": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"uri": "string"
}
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"body": "string",
"date_created": "string",
"date_sent": "string",
"date_updated": "string",
"direction": "inbound",
"error_code": 42,
"error_message": "string",
"from": "string",
"messaging_service_sid": "string",
"num_media": "string",
"num_segments": "string",
"price": "string",
"price_unit": "string",
"sid": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"uri": "string"
}