Chat

Изменить режим уведомлений чата

Changed on

Изменяет режим уведомлений указанного чата для текущего участника.

patch/api/v1/chat/conversations/{id}/notification-mode

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

ChatNotificationModeInput required
mode, 'all' | 'mentions' | 'muted' required
muted_until, string date-time nullable

Без звука на время: до этого момента беседа молчит, потом снова действует прежний режим. Только вместе с mode = muted, в будущем и не дальше года; без срока — без звука навсегда

Response

Сохранённый режим

ChatNotificationModeResult required
mode, 'all' | 'mentions' | 'muted' required
mode_after_mute, 'all' | 'mentions' | 'null' nullable required

Какой режим вернётся, когда выйдет срок; пусто, если срока нет

muted_until, string date-time nullable required

До какого момента беседа молчит, если звук выключен на время; пусто, если срока нет

changed, boolean required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision