v1

latestOpenAPI 3.0.32026-07-26870417.2 KB
chats

Update Chat Labels

This endpoint updates the labels for specific chats

patch/chats/labels

Headers

x-phonestring
Example:{{orgPhone}}

Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header

Request body

labelsstring required
  • A comma-separated list of labels to be assigned to the chats. All labels are case-insensitive.
  • If any label currently does not exist, it will be created
  • Note: This replaces all the current labels of the chat
chat_idsstring[] required
  • An array of chat_ids to update

Response

204 OK

object required

204 No Content