patch https://api-smartflo.tatateleservices.com/v1/user/
Sample Request
This API allows you to update/Block/Unblock an existing User.
curl --request PATCH \
--url https://api-smartflo.tatateleservices.com/v1/user/id \
--header 'accept: application/json' \
--header 'content-type: application/json'📘 Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Path Params)
The following parameter is required to patch a user:
| Variable Name | Description | Data Type |
|---|---|---|
| id | ID of the user. | String |
Request Variables (Boady Params)
The following parameter is required to patch a user:
| Variable Name | Description | Data Type |
|---|---|---|
| name | Name of the user | string |
| number | Mobile number of the user. | string |
| Email ID of the user. | string | |
| caller_id | Define IDs of the numbers allotted to user. It can be extracted via GET MyNumbers API. | array of string |
| agent_group | The agent groups to allot on a user. For example, sales group. | array of string |
| block_agent | Whether you want to block the user or not. | boolean |
| international_outbound | Whether internation outbound is to be enabled or not. | boolean |
| destination | Designation of the user. | string |
| login_id | Define login ID for web login. For example: testuser. | string |
| user_role | Role ID defined for the user, it can be extracted by editing the role on the web panel and copying it from the URL. | string |
| password | Define password for web login. | string |
| block_web_login | Block access to web login. | boolean |
| user_for_cdr | Users defined for user to see the CDRs. | object (user_for_cdr) |
| login_based_calling | Whether calling would work based on logging to the application. | boolean |
| disable_agent | To disable the agent | boolean |
Response Variables
The response returned is as follows:
| Variable Name | Description | Data Type |
|---|---|---|
| Success | The request success status, the possible values are: True (default) for success. False for failure. | Boolean |
| Message | The message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here. | String |
| Error | The error type is shown is here, if any variable input is not selected properly. | Object |