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>