latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Chats

Change chat status

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Chats/setChatStatus" target="_blank">Try in sandbox</a><br>Set the status of the chat given by ID.

post/api/v2/chats/status

Request body

idinteger required

Chat ID.

status'a' | 'c' | 'd' required

Chat status:

  • a - Active;
  • c - Closed;
  • d - Deleted.

Example request

{
  "id": 543
}

Response

Returned when successful.

idinteger required

Resource ID.

hrefstring required

A link to this resource. If you want to fetch it, just GET this address.

Example response

{
  "id": 515,
  "href": "/api/v2/entity_name/1"
}