- DarkLight
Update State
- DarkLight
This API allows a developer to update the Agent state change.
Pre-requisite
The agent must be in the LoggedIn state.
Sequence Diagram

Message Structure
Request Parameters | Value |
|---|---|
channel | Amazon |
topic | Agent |
subtopic | Update |
source | «app-name-broadcasting-this-message» |
data | JSON Object |
Data Parameters
Parameters | Data Type | Description | Example Data |
|---|---|---|---|
label | String | Label of agent state. | Not Ready, Available, Offline |
code | String | Given code of agent state. | Not Ready, Available, Offline |
type | String | Type of agent state. | Not Routable, Routable, Offline |
Response Parameters | Value |
|---|---|
channel | Not Applicable |
topic | Not Applicable |
subtopic | Not Applicable |
message | Not Applicable |
Possible Error Cases
Error Type | Error Message |
|---|---|
UPDATE_AGENT_STATE_FAILED | Agent state change failed. |
AGENT_STATE_NOT_FOUND | Specified Agent State not found. |
Sample Request
{
"channel": "Amazon",
"topic": "Agent",
"subtopic": "UpdateState",
"data": {
"label": "Available",
"code": "Available",
"type": "routable"
}
}Sample Response
Below are the set of events:
SetAgentState
CcpAgentState
SetAgentDetails
SetNailupDetails