AnsweredAssumed Answered

How to change CSQ agent's order via API

Question asked by AAkivkin1982 on Feb 5, 2015
Latest reply on Mar 18, 2016 by alban.faverot

Hi, guys!

I have UCCX 10.0 with a Contact Service Queue and I'm trying to change an order of two agents via API (Agent 2 should be first in CSQ and Agent 1 - the second). I'm sending XML-data (as below) via PUT-request to UCCX API, operation is completed without any errors, but the agent's order isn't changing.

If i'm trying to change any other CSQ parameter - it works. If i'm trying to recreate new CSQ with the same parameters (as below), Agent 1 becomes first in CSQ, and Agent 2 - the second (it looks like a forced sort by agent ID or smth.).

XML-data:

<?xml version="1.0" encoding="UTF-8" ?>
<csq>
<self>http://uccx-1.domain.com/adminapi/csq/1</self>
<id>1</id>
<name>Test_CSQ</name>
<queueType>VOICE</queueType>
<queueAlgorithm>FIFO</queueAlgorithm>
<autoWork>false</autoWork>
<wrapupTime>0</wrapupTime>
<resourcePoolType>RESOURCE_GROUP</resourcePoolType>
<serviceLevel>5</serviceLevel>
<serviceLevelPercentage>70</serviceLevelPercentage>
<poolSpecificInfo>
  <resourceGroup>
   <resourceGroupNameUriPair name="Test_RG">
    <refURL>http://uccx-1.domain.com/adminapi/resourceGroup/1</refURL>
   </resourceGroupNameUriPair>
   <selectionCriteria>Linear</selectionCriteria>
   <orderedResources name="Agent2">
    <refURL>http://uccx-1.domain.com/adminapi/resource/Agent2</refURL>
   </orderedResources>
   <orderedResources name="Agent1">
    <refURL>http://uccx-1.domain.com/adminapi/resource/Agent1</refURL>
   </orderedResources>

   </resourceGroup>
</poolSpecificInfo>
</csq>

Does anybody know, how to change CSQ agent's order via API?

Best regards, Sergey

Outcomes