Chat
Update chat labels by Chat IDs
To update labels for multiple chats at once
Older versions of the API used PATCH /chats/labels
as the endpoint. This is now deprecated and replaced with PATCH /chats/labels/update
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token> is your apiKey
generated in Periskope API settings.
Headers
x-phone
string
requiredOrganisation phone number(with country code) and without any spaces or special characters.
e.g. 9190043XXXXX
Body
application/json
replace
boolean
Adding this parameter will determine whether the existing labels will be replaced or new labels will be appended at end.
Default value - true
labels
object
requiredAn object containing array of labels against chat_ids
For e.g. {"9190043XXXX@c.us": ["hot"]}
Was this page helpful?