I have been trying to change the agent state from READY to NOT_READY using following API:
URL : http://<host>/finesse/api/User/<AgentId>
Content Type: Application/XML
HTTP Method: PUT
Then I get the following error:
<ErrorMessage>The state change requires a valid reason code.</ErrorMessage>
Now the problem here is that I have added this reason code into finesse via finesse Administrator Desktop.But I am still getting the same error suggesting that the reason code is not available.
Screen shot of finesse desktop is attached.