putMessagesId
Update a messages or Message resource, which represents a message for a messageThread.
In: header
Path Parameters
The ID of this message.
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Update Message Request
Update Message Request
Whether this resource is marked as read.
-
0- Message has not been read yet. -
1- Message has been read and a value.
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X PUT "https://example.com/messages/t1_mtd_10ca1fcf172a9ac47656a21" \ -H "Content-Type: application/json" \ -d '{ "read": 1 }'{ "response": { "data": [ { "id": "t1_mtd_10ca1fcf172a9ac47656a21", "created": "2025-03-07 00:10:39.1099", "modified": "2025-03-07 00:10:39.1099", "creator": "t1_log_0092b50e8812b18e41d511s", "modifier": "t1_log_0092b50e8812b18e41d511s", "messageThread": "t1_mtd_10ca7fcf172a9ac47656a2c", "opposingMessage": "", "type": "incoming", "generated": 1, "secure": 1, "read": 0, "message": "This is a test message" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}