Chat

Идемпотентно переслать сообщение в доступный чат

Changed on

Проверяет чтение исходного и запись целевого чата; вложения физически копируются под новым tenant-scoped object key.

post/api/v1/chat/conversations/{id}/messages/{messageId}/forward

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
messageId, string uuid required

Headers

X-Tenant, string required

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

Request body

ChatForwardMessage required
target_conversation_id, string uuid required
client_message_id, string uuid required

Response

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

ChatForwardMessageResult required
message, ChatForwardedMessage 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 message/attachments/items/image_height to the response with the status

    • info

      added the optional property message/attachments/items/image_height to the response with the status

    • info

      added the optional property message/attachments/items/image_width to the response with the status

    1 more change in this revision