POST - Create a user record
Purpose
Use this API to create a user record in the organization.
Authorization
| HeaderKey | Description |
| Authorization* | Zoho-oauthtoken<space><ACCESS_TOKEN> |
| Accept* | Set to application/json. |
Request URL
Method: POST
https://voice.zoho.com/rest/json/zv/api/users |
Scope: ZohoVoice.agents.CREATE
Parameters:
Param Name | Data Type | Description |
data* | JSONObject | Represents the user data in JSON format.
Example request body: |
Sample Request
Copiedcurl 'https://voice.zoho.com/rest/json/zv/api/users' --data-raw 'data=ENCODE({"name":"Demo","emailid":"demo@zoho.com","lang":"en","timezone":"GMT","departmentName":"","zvtRole":"3","associatedNumbers":[],"associatedAgents":[]})' -X POST -H "Authorization: Zoho-oauthtoken *****" -H "Content-Type: application/json"
Sample Response - Success
Copied{
"code": "200",
"userId": "406100000118000",
"status": "SUCCESS"
}Sample Response - Error
Copied{
"code": "ZVTL001",
"message": "Licensed users limit exceeded. Please purchase more user licenses.",
"status": "ERROR"
}