Update a user
Update a user with the provided details.
PATCH /integrations/user/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Email of the user |
Payload
numberPhone number of user to be created (E.164 format)
rolesUpdated list of role ids of user. This will replace the older roles assigned to the user
first_nameFirst name of the user
last_nameLast name of the user
is_activeTo activate or deactivate the user. On deactivating a user, all licenses are unassigned too. On activating, Viewer license is assigned by default
licenseOne of Plan or Viewer. In trial accounts, Plan license will be assigned by default
assigned_addon_licensesList of addon licenses to assign to the user. Possible values are: AUTODIAL, BROWSER CALLING (For INR accounts only), WHATSAPP BUSINESS
unassigned_addon_licensesList of addon licenses to unassign from the user. Possible values are: AUTODIAL, BROWSER CALLING (For INR accounts only), WHATSAPP BUSINESS
browser_callsTo enable or disable Browser Based calling for the user (without removing the licenses assigned to the user). Ignored and set to True if BROWSER CALLING license is assigned via the same API request.
statusOne of ONLINE or AWAY. If set to AWAY, the user will not receive any calls
Response
{ "success": true, "message": "string", "data": { "user_id": "string", "first_name": "string", "last_name": "string", "email": "email", "is_active": true, "number": { "id": 0, "country_code": "string", "phone_number": "string", "loc": "string", "created_at": "date-time" }, "roles": [], "browser_calls": true, "license": "string", "addon_licenses": [ "string" ], "status": "string" }}