cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
821
Views
0
Helpful
6
Replies

UCCX Resource Update API

Rakhi Saxena (RS)
Cisco Employee
Cisco Employee

Hi Team,

I am trying to update a Resource on UCCX to assign Resource Group and Skill, however, I am getting below error:

{
    "apiError": [
        {
            "errorData": "",
            "errorMessage": "cvc-enumeration-valid: Value '0' is not facet-valid with respect to enumeration '[1, 2]'. It must be a value from the enumeration.",
            "errorType": "InvalidInput"
        }
    ]
}
I checked the data structure but I don't see any field of type Enum:

https://developer.cisco.com/docs/contact-center-express/data-structure-for-resource/#data-structure-for-resource

Below is the API payload I tried with PUT request:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resource>
        <userID>rakhsaxe</userID>
        <firstName>Rakhi</firstName>
        <lastName>Saxena</lastName>
        <extension>112233</extension>
        <autoAvailable>true</autoAvailable>
        <resourceGroup name="rakhsaxeRG">
        </resourceGroup>
        <skillMap>
            <skillCompetency>
                <competencelevel>5</competencelevel>
                <skillNameUriPair name="rakhsaxeskill">
                    <refURL>https://uccx1.dcloud.cisco.com/adminapi/skill/48</refURL>
                </skillNameUriPair>
            </skillCompetency>
            <skillCompetency>
                <competencelevel>5</competencelevel>
                <skillNameUriPair name="rakhsaxeskil2">
                    <refURL>https://uccx1.dcloud.cisco.com/adminapi/skill/49</refURL>
                </skillNameUriPair>
            </skillCompetency>
        </skillMap>
        <autoAvailable>false</autoAvailable>
</resource>

Can I get some inputs if anyone has tried this?
6 Replies 6

david.macias
VIP Alumni
VIP Alumni

You're missing type and team.

david

Thank you, David. That worked.

I am able to update route group, skills and team for a user.

Now my next question is how can we assign additional role to an Agent. For example I would like to have a user who has 3 roles "Agent, Supervisor and Reporting".

 

 

Maybe someone else has a solution, but I was never able to figure out how to assign those roles via the API.

There's no API for this.

david

Rakhi Saxena (RS)
Cisco Employee
Cisco Employee

Does anyone happen to know any other method to assign supervisor, reporting role in bulk to multiple users?

 

Rakhi Saxena (RS)
Cisco Employee
Cisco Employee

Do we have any support mechanism available so that I can raise an API request for UCCX? We have it for Webex API and I am trying to figure out if we have same mechanism available for UCCX APIs?