PUT
/
chat
/
Message
/
{chat_message_id}
.json
curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: eddf864695d72d33b959eec2ae6c640d817dfada" \
-d '{  
  "read":"1",
  "chat_dialog_id":"53a99a7be4b094c7c6d31b41"
}' \
https://api.quickblox.com/chat/Message/53aabe15e4b077ddd43e7fd3.json
Empty body

Recipes

Path Parameters

chat_message_id
string
ID of the message. Generated automatically by the server after message creation.

Body Parameters

read
integer
Update a message status to read. Set read=1 to perform. As a result, the user ID is added to the array of read_ids field. See the Messages model for more details.
delivered
integer
Update a message status to delivered. Set delivered=1 to perform. As a result, the user ID is added to the array of delivered_ids field. See the Messages model for more details.
message
string
Update message’s text.
chat_dialog_id
string
required
ID of the dialog containing a message for update.

Headers

QB-Token
string
required
A user or application session token. See our Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Authorization
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
On-Behalf-Of
string
User ID. The user ID of the user on whose behalf the request is being made.

Responses

curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: eddf864695d72d33b959eec2ae6c640d817dfada" \
-d '{  
  "read":"1",
  "chat_dialog_id":"53a99a7be4b094c7c6d31b41"
}' \
https://api.quickblox.com/chat/Message/53aabe15e4b077ddd43e7fd3.json
Empty body