Chat

Закрепить сообщение в чате

Changed on

Идемпотентно. Уже закреплённое сообщение отвечает 200 с changed=false и тем же закреплением.

put/api/v1/chat/conversations/{id}/messages/{messageId}/pin

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

Response

Состояние закрепления

ChatChangePinResult required
pin, ChatMessagePin
changed, boolean required

Example response

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

Changes

    • info

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

    • info

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

    • info

      endpoint added