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,
Hi Fabien,
Here is an example of two skill update which worked for me:
{"userID":"satya","firstName":"","lastName":"satya","extension":"1002","alias":"","skillMap":{"skillCompetency":[{"competencelevel":5,"skillNameUriPair":{"@name":"jjskill1","refURL":"http://10.77.63.57/adminapi/skill/7"}},{"competencelevel":5,"skillNameUriPair":{"@name":"jjskill2","refURL":"http://10.77.63.57/adminapi/skill/3"}}]},"autoAvailable":true,"type":1,"team":{"@name":"Default","refURL":"http://10.77.63.57/adminapi/team/1"},"primarySupervisorOf":{},"secondarySupervisorOf":{}}
Looks like your json request is having 'skillCompetency' two times.
Regards,
Jyothish Joshi