Update State
    • Dark
      Light

    Update State

    • Dark
      Light

    Article summary

    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


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.