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

Changing resourceType through UCCX 10.6 API

dbonagir
Cisco Employee
Cisco Employee

I have been able to successfully update resources through the UCCX REST API except the resourceType node. I have tested sending XML through a REST utility using the PUT method for an existing resource. I get the XML through the GET method and test changing the resource by making minor changes to that XML and sending it back.

I get a response status code of 200 when changing something like AgentAlias and other nodes. If I change the resourceType from 1 to 2 in the XML then I get a response status code of 400 (Bad Request). I am trying to change a resource from agent to supervisor and vice versa through the API.

Is there suppose to be a different way to change a resource from agent to supervisor through the API?

Here is the section of the resource.xsd regarding resourceType:

<xs:simpleType name="resourceType">

<xs:restriction base="xs:int">

<xs:enumeration id="AGENT" value="1" />

<xs:enumeration id="SUPERVISOR" value="2" />

</xs:restriction>

</xs:simpleType>

0 Replies 0