I'm having trouble getting started with the WTI APIs. All I want to do for starters is change an agent's state to "notReady". I'm using the documentation located here:
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/10_1_3/api_refs/index.gsp
So, far, I can:
Create a session:
https://aes-fqdn/api/session - This successfully returns the bearer token I use for the other commands.
Get the device ID for the station and the agent:
https://aes-fqdn/api/fe/v1/GetDeviceId - This returns something like:
{
"GetDeviceIdResponse": {
"device": "1111:CMName:0.0.0.0:1"
}
}
I feel this should be all I need to use this command to change the agent state:
https://aes-fqdn/api/fe/v1/SetAgentState which requires a JSON body similar to:
{
"device": "1111:CMName:0.0.0.0:1",
"requestedAgentState": "ready",
"agentID": 2222,
"password": 1234
}
When I issue this command the AES returns a 400 bad request with a response body of:
{
"systemResourceAvailibility": "otherResourceOutOfService"
}
The station is registered and the agent is logged into the station and available.
What am I missing? Are there other docs or a sample app available that explains how this API should be properly used?
Thanks for any help you can provide!