Automatic Queue creation with API

Hello Team ,

We are trying to automate creating queues with API - We will create one queue with all the applicable settings and copy that settings into another using the SourceQueueID field.

POST API -
/api/v2/routing/queues
Payload -
"name": "{queueName}",
"sourceQueueId": "e96aXXXX"

Though the queues are getting created , its not copying the division setting from the source queue , instead the new queues are created in Home division.

I tried including the division in the payload but got 400-bad request as response , tried different formats nothing worked. Could someone please help on this ?

Sometimes we have to create more than 100 queues and its repetitive work. If there is any automation available already let me know that as well.

Thanks in advance.
MJD

Hello,

The request body for POST /api/v2/routing/queues should look like this:

{
  "name":"NAME_OF_THE_QUEUE",
  "division":{
    "id":"ID_OF_THE_DIVISION_WHERE_QUEUE_WILL_BE_CREATED"
  },
  "sourceQueueId":"ID_OF_THE_QUEUE_TO_BE_COPIED"
}

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.