[POST] .../v1/chatmessage/markread
Marks chat messages as read for the current user. Use this method to update the current request user's read state in one chat after messages are displayed. The request body is required, chat_id must identify the chat and last_read_message_id optionally limits the update to messages up to a known message. Access is scoped to the current user's chat visibility and the method changes only the current user's read markers and unread counters. Missing body, missing chat_id, inaccessible chat, invalid last_read_message_id, unread-state storage errors and database failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| chat_id | String | Required | Chat UUID. |
| last_read_message_id | String | Optional | UUID of the last message to mark as read inclusively. |
Request Example
{
"chat_id": "8cdd646d-dbd0-45c0-8f5b-d90a9b000001",
"last_read_message_id": "4b9727ec-a389-4274-95b6-069350000001"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}