Chat

Найти или создать личный диалог

Changed on

Повторный или встречный вызов возвращает тот же direct; created сообщает, была ли новая запись.

post/api/v1/chat/conversations/direct

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 выбранного кабинета; кабинет не является юрлицом

Request body

ChatEnsureDirect required
peer_user_id, integer required

Response

Существующий диалог

ChatEnsureDirectResult required
conversation_id, string uuid required
created, 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