SetAvailableReactions
[POST] .../v1/chat/setavailablereactions
Configures reactions available in a specific chat. Use this method to override the available reaction list for a chat after reading the current values with Chat/GetAvailableReactions. The request body is required, chat_id must identify the chat and reactions must be provided; an empty list resets the chat to server defaults. Access is checked against the current request user's chat management scope and each reaction must be allowed by the server reaction settings. Missing body, missing chat_id or reactions, unsupported reaction codes, denied access, missing chat and database failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| chat_id | String | Required | Chat UUID. |
| reactions | Array of String | Required | Chat reaction list. An empty list resets the setting to the server default. |
Request Example
{
"chat_id": "8cdd646d-dbd0-45c0-8f5b-d90a9b000001",
"reactions": [
"like",
"heart",
"fire"
]
}
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,
"ids": [
"8cdd646d-dbd0-45c0-8f5b-d90a9b000001"
]
}
}