POST - Create a queue
Purpose
Use this API to create a queue.
Authorization
| HeaderKey | Description |
| Authorization* | Zoho-oauthtoken<space><ACCESS_TOKEN> |
| Accept* | Set to application/json. |
Scope
*All APIs are accessible under zohovoice.queues.ALL scope.
Request URL
Method: POST
| https://voice.zoho.com/rest/json/zv/api/groups |
Scope: zohovoice.queues.CREATE
Param Name | Data Type | Description |
data* | JSONObject | Represents the queue data in JSON format. The name, members, isBulk, config keys are mandatory. Example: {
strategy possible values:
|
Data JSON:
Key | Data Type | Description |
members* | JSONArray of Long | Represents the list of agent IDs associated with the queue. Example: [AGENT_ID1, AGENT_ID2] |
extension | Integer | Represents the extension number. A maximum of four digits is allowed. |
emailNotificationConfig | Integer | Represents the email notification configuration.
Possible values:
|
name* | String | Represents the name of the queue. |
emailId | String | Represents the email ID that receives queue missed call notifications. |
queueWaitMusic | JSONObject | Represents the queue wait music configuration.
Example: { |
qapId | Long | Represents the queue audio profile ID. |
isBulk* | Boolean | Represents whether agents are added in bulk. Default value is false |
config* | JSONObject | Represents the queue configuration.
{
|
autocallBack | JSONObject | Represents the callback request configuration.
Example: { |
Sample Request
Copiedcurl "https://voice.zoho.com/rest/json/zv/api/groups" \
-X POST \
-H "Authorization:Zoho-oauthtoken *****"Sample Response - Success
Copied{
"code": "200",
"groupId": 4061000001205001,
"status": "SUCCESS"
}Sample Response - Error
Copied{
"code": "<App Error Code>",
"message": "<Error Message>",
"status": "ERROR"
}