Chat
Изменить режим уведомлений чата
Changed onИзменяет режим уведомлений указанного чата для текущего участника.
patch/api/v1/chat/conversations/{id}/notification-mode
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Chat Notification Mode Input required
mode, 'all' | 'mentions' | 'muted' required
muted_until, string date-time nullable
Без звука на время: до этого момента беседа молчит, потом снова действует прежний режим. Только вместе с mode = muted, в будущем и не дальше года; без срока — без звука навсегда
Response
Сохранённый режим
Chat Notification Mode Result 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
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info