Chat

Получить числа непрочитанного для значков

Changed on

Только числа: обычные беседы и беседы задач считаются раздельно, ни названий, ни текста в ответе нет. Отсюда берётся цифра на значке раздела и вкладок.

get/api/v1/chat/conversations/unread

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

Headers

X-Tenant, string required

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

Response

Непрочитанное по двум пространствам

ChatUnreadSummary required
chats, ChatUnreadSpace required
tasks, ChatUnreadSpace required
support, ChatUnreadSpace

Чаты заявок поддержки — пространство «Поддержка» внутреннего кабинета (ERP-2152). Из tasks они исключены

Changes

    • info

      added the optional property chats/notifying to the response with the status

    • info

      added the optional property support/allOf[#/components/schemas/ChatUnreadSpace]/notifying to the response with the status

    • info

      added the optional property tasks/notifying to the response with the status