latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Chats

Delete chats (bulk)

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Chats/deleteChatsBulk" target="_blank">Try in sandbox</a><br>Delete chats by given IDs or delete all chats.

post/api/v2/chats/delete

Request body

idsstring

Entity ID(s), separated by comma.

allboolean

Entity ID(s), separated by comma.

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

Default is an empty string. If set, all entities with specified status will be affected.

Example request

{
  "ids": "1,2,3",
  "status": "a"
}

Response

Request executed with success.