Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
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
Example:
"{{orgPhone}}"
Body
application/json
- An object mapping user emails to boolean access flags
- Note: This replaces the current override chat access property of the chats
Example:
{ "alice@gmail.com": true, "bob@gmail.com": false }
- An array of chat_ids to update
- When true, the existing chat access overrides are fully replaced with the access map provided in this request
- When false, the provided access values are merged into the existing overrides (only updating the specified users without removing others)
Response
204 OK
204 No Content