SetMuted

[POST] .../v1/chat/setmuted

Changes the muted notifications flag for the current user in a chat. Use this method when the current request user mutes or unmutes notifications for one chat. The request body is required, id must contain the chat UUID and muted determines the new current-user state. Access is scoped to the current user's membership or linked entity chat visibility and the method changes only that user's state, not the chat record for other participants. Missing body, missing id, inaccessible chat, invalid current-user scope, database failures and notification state storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id String Required Chat UUID.
muted Boolean Required true - mute notifications, false - enable notifications.

Request Example

{
  "id": "8cdd646d-dbd0-45c0-8f5b-d90a9b000001",
  "muted": true
}

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"
    ]
  }
}