08-21-2024 03:09 AM
Hello!
I'm trying to automate creating and assign resources on an UCCX through the configuration REST API. I successfully managed to sync resources from CUCM, assign resource groups and teams but I'm stuck with the supervisor capabilities. If I manually make a resource supervisor I can assign the resource to teams as secondary supervisor but I haven't found a way to give the user the supervisor capability.
I found this four year old post in the community which has a crude workaround but no real solution: https://community.cisco.com/t5/contact-center/add-supervisor-capability-through-uccx-api/td-p/4067378
There are APIs for changing advanced supervisor capabilities but those can't even be used if the resource isn't manually changed to supervisor beforehand: https://developer.cisco.com/docs/contact-center-express/add-remove-or-modify-advanced-supervisor-capabilities/#add-remove-or-modify-advanced-supervisor-capabilities
The resource has a "type" field that seems to indicate (the documentation doesn't specify it) if the resource is a normal agent (value=1) or a supervisor (value=2): https://developer.cisco.com/docs/contact-center-express/data-structure-for-resource/#data-structure-for-resource
But if I try to modify the type through a PUT request I get the following error: "Trying to modify unmodifiable fields [type]"
So is there an API to add the supervisor capability (and probably any of the other ones like Administrator or Reporting) like it can be done in the UI?
Best Regards
Philip Woelfel
08-21-2024 05:36 AM
I have never tried changing a user from an agent to a supervisor using the API, so I don't have first handle knowledge. The account you use to authenticate with the API would have to be an admin account, not a supervisor. I suspect that would be a different API all than just updating the user. That is a guess since the area where you assign supervisor capability is in a different area of the GUI.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide