AnsweredAssumed Answered

Set two skills to a resource UCCX using REST API

Question asked by fabien.bonic on Dec 10, 2014
Latest reply on Dec 11, 2014 by fabien.bonic

Hi,

I want to set 2 skills to a resource in UCCX using the REST API. Here is my request :

 

PUT https://uccx/adminapi/resource/userId

 

{"userID":"userId","firstName":"first","lastName":"last","extension":"12345","skillMap":[{"skillCompetency":{"competencelevel":6,"skillNameUriPair":{"@name":"Support","refURL":"https://uccx/adminapi/Skill/2"}}},{"skillCompetency":{"competencelevel":4,"skillNameUriPair":{"@name":"Sales","refURL":"https://uccx/adminapi/Skill/3"}}}],"autoAvailable":false,"type":1,"team":{"@name":"Default","refURL":"https://uccx/adminapi/team/1"},"primarySupervisorOf":{},"secondarySupervisorOf":{}}

 

The return code is 200 but the result is that only the second skill has been associated to my resource.

What's wrong with my request ?

Thanks,

Outcomes