Chat
Update chat labels by Chat IDs
Useful for updating labels for multiple chats at once. Replaces the existing labels with the new ones provided in the request.
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
labels
string
requiredList of comma-separated labels.
e.g. "high, low, medium"
You can find the label IDs using the List all org labels (Chat) API
chat_ids
string[]
requiredArray of Chat IDs whose labels you want to update.
e.g. ["9190043XXXXX@c.us", "120364434XXXXXX@g.us"]
Was this page helpful?