Chat

Создать групповой чат

Changed on

Создаёт групповой чат.

post/api/v1/chat/conversations

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

ChatCreateGroup required
title, string required
description, string
member_user_ids, integer[] required

Response

Созданный чат

ChatCreateGroupResult required
conversation, ChatConversation required
created, true required

Example response

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

Changes

    • info

      added the optional property conversation/archived_at to the response with the status

    • info

      added the optional property conversation/capabilities/canManageGreeting to the response with the status

    • info

      added the optional property conversation/capabilities/canManageSettings to the response with the status

    3 more changes in this revision