There are not currently any RESTful interfaces that allow agent state monitoring nor agent state updates.
The routing web service you reference will not provide current agent state, nor allow updates to an agent's state.
I have another thread in email that I perceive is directly related to this same question by way of Harold C.
I am posting my response to Harold here.
Agent state ‘monitoring’ and agent state updates require use of TSAPI, JTAPI or DMCC API. The difference is largely what programming language suits you.
TSAPI is C++
JTAPI is Java
DMCC has three flavors. C#, Java, and access to the protocol XSDs which can be used by various code generators to produce interface source code.
There are ways of accessing this content through some other mechanisms such as the Client SDK and I believe Breeze APIs, but that is awkward way to access the functionality based on the use case that was described.
In all three cases you need to utilize TSAPI Basic user licensing. This is a per agent seat license. However in this context you only need one license PER OUTSTANDING QUERY or state update request. You can and should have multiple outstanding queries and potentially update requests. Anyone building such a solution should read this PSN
https://downloads.avaya.com/css/P8/documents/101036842
In all three cases you have to _poll_ to find agent state. There is no agent state change event provided to third party applications. This is due to decisions Avaya made a decade or more ago about making agent state knowledge more difficult to access for 3rd party applications in order to advantage Avaya contact center solutions in the market place.
Updating agent state can be done via an API call that varies slightly based on which SDK is chosen for the work.
All of the API documentation can be found by selecting the appropriate interface on this page
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/8_1_3/index.gsp#tabs-product-horiz-2
Select a ‘tab’ such as JTAPI and scroll down to see the available documentation for that interface type.
There are sample apps included with the SDK and some additional ones on our portal along with tutorials, and other educational content
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/index.gsp
This particular TSAPI sample application may be interesting to look at:
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/sample_applications/tsapi/agent_view/index.gsp
Instead of spend a bunch of time trying to describe more detail about these approaches I would prefer to know the API of choice first.
I highly encourage any company interested in acquiring technical assistance with Avaya APIs to become a support enabled member in the DevConnect program in order to get their questions about the API answered and get technical support if/when they encounter development related issues/questions. For information on membership visit:
https://www.devconnectprogram.com/site/global/program_benefits/membership_overview/index.gsp#tabs-1