Chat
Update chat custom properties by Chat IDs
To update custom properties for multiple chats at once
Older versions of the API used PATCH /chats/update_properties
as the endpoint. This is now deprecated and replaced with PATCH /chats/custom-properties/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
properties
object
requiredAn object containing an object with property_id and value against chat_ids
For e.g. {"9190043XXXX@c.us": {"Property1": "test"}}
Was this page helpful?