Chat

Отправить в беседу карточку видеовстречи

Changed on

Кнопка «+» → «Видеовстреча» в чате. Ссылку клиент не передаёт: сервер сам заводит комнату Яндекс Телемоста от имени отправителя или, если Телемост не подключён, берёт его постоянную ссылку видеовстречи из личных настроек календаря, и кладёт в беседу сообщение kind=application с application_type calendar.video_meeting@1 и application_payload {url, provider}, где provider — telemost или personal. Повтор с тем же client_message_id возвращает уже отправленное сообщение и вторую комнату не заводит. 409 video_meeting_not_set_up — нет ни Телемоста, ни постоянной ссылки; 409 telemost_reconnect_required — доступ к Телемосту истёк и его нужно подключить заново; 409 conflict — client_message_id уже занят другим сообщением; 502 telemost_unavailable — Телемост не ответил.

post/api/v1/chat/conversations/{id}/video-meeting

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

ChatSendVideoMeeting required
client_message_id, string uuid required

Ключ идемпотентности отправки. Уникален в пределах беседы и отправителя: повтор с тем же ключом не заводит вторую комнату и второе сообщение, а возвращает уже отправленное

Response

Повтор ранее зафиксированной отправки

ChatSendMessageResult required
message, ChatMessage required
created, boolean required

Example response

{
  "message": {
    "attachments": [
      {
        "content_url": "/api/v1/chat/attachments/00000000-0000-0000-0000-000000000001/content"
      }
    ]
  }
}

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

    9 more changes in this revision