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