/icws/{sessionId}/messaging/subscriptions/status/status-messages

PUT

/icws/{sessionId}/messaging/subscriptions/status/status-messages

Creates or updates message subscription to status messages.

Note

The associated message will contain all status messages defined in Interaction Center. This allows clients to retreive status messages only once (instead of them being embedded in each user status payload, for example). It is very important, however, that clients retrieve a user's access to status messages in order to present the user with accessible statuses.

Feature Version
status 1

Request

Parameters
Type
Name
Comments
Header
ININ-ICWS-CSRF-Token

Required

The ININ session token necessary for all calls that require a security or user context.

    Header
    Cookie

    Required

    The session cookie. With the exception of the connection request, all requests must provide a session cookie.

      Template
      sessionId

      Required

      The ININ session ID necessary for all calls that require a security or user context.

        Response

        200 - OK
        The message subscription to status messages has been updated.
        Associated Message
        Status message list changed. Note how added and changed collections contain the entire status message representation, whereas the removed collection only contains status message Ids to reference.
        statusMessagesMessage
        Property
        Value
        Comments
        __type
        "urn:inin.com:status:statusMessagesMessage"

        Required

        The JSON type representing this option.
        isDelta
        Boolean

        Required

        When true, this property indicates that some optional properties that have not changed may be omitted (all required properties will be included). In this case, the client side cache should be updated with the values for the properties provided and no change should be made for the properties not included as part of the message. This allows the API to deliver smaller messages that only represent the properties that have changed.

        When this property is false, the client side cache for this subscription should be cleared and replaced with the data provided in the message. For the initial message in response to a subscription, this property will be false to indicate the cache should be initialized with the data provided.

        statusId
        String

        Required

        The ID of the status message. Used to refer to or set the status message.

        The value represented by this property should be treated as case-insensitive.

        messageText
        String

        Required

        Localized message text when displaying this status. Appears in list of selectable statuses.
        iconUri
        Uri

        Required

        The icon associated with this status message.
        groupTag
        String

        Required

        The group this status belongs to for reporting. A Status Group is a name that loosely categorizes a status message for reporting purposes. When a new status is defined in Interaction Administrator using the System Configuration < Status Messages container, it is mapped to a Status Group for reporting purposes.
        canHaveDate
        Boolean

        Required

        Indicates whether this status can have an ending date.
        canHaveTime
        Boolean

        Required

        Indicates whether this status can have an ending time.
        isDoNotDisturbStatus
        Boolean

        Required

        Indicates whether this status is a do not disturb status.
        isSelectableStatus
        Boolean

        Required

        Indicates whether this status is selectable by an agent.
        isPersistentStatus
        Boolean

        Required

        Indicates whether this status can persist when the agent logs out of IC.
        isForwardStatus
        Boolean

        Required

        Indicates whether this status is a forwarding status.
        isAfterCallWorkStatus
        Boolean

        Required

        Indicates whether this status requires after call work (ACW). Indicates that an agent is in "Follow Up" mode (IsAllowFollowUpStatus) after an ACD call.
        isAcdStatus
        Boolean

        Required

        Indicates whether an agent is available to receive ACD calls.
        isAllowFollowUpStatus
        Boolean

        Required

        Indicates that an agent's status can change to "Follow Up" after an ACD call terminates.
        systemId
        String

        Required

        An unique numeric identifier for this status message.
        statusMessagesRemoved
        List [Unbounded]: String
        A list of removed status messages.
        400 - Bad Request
        The request was invalid. This can occur when the message body is malformed or missing required items. This will also occur if a required header or query string parameter is missing or invalid.
        error
        Provides additional detail for an error.
        Property
        Value
        Comments
        errorId
        String
        The error identifier that describes the current error.
        message
        String

        Required

        A message that describes the current error.
        401 - Unauthorized
        The specified session token is missing, invalid, or has expired.
        Parameters
        Type
        Name
        Comments
        Header
        WWW-Authenticate

        Required

        Indicates that the client needs to authenticate using a custom ICWS scheme, which supports a realm of type ICWS and a location which is the URL at which the client can authenticate. A typical example would be the following.

        WWW-Authenticate: ICWS realm="ICWS" location="/ICWS/connection"

          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.
          410 - Gone
          This resource has been deprecated and removed from the API.
          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.
          500 - Internal Server Error
          An unexpected error occurred while processing the request.
          error
          Provides additional detail for an error.
          Property
          Value
          Comments
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.

          DELETE

          /icws/{sessionId}/messaging/subscriptions/status/status-messages

          Removes message subscription to status messages.
          Feature Version
          status 1

          Request

          Parameters
          Type
          Name
          Comments
          Header
          ININ-ICWS-CSRF-Token

          Required

          The ININ session token necessary for all calls that require a security or user context.

            Header
            Cookie

            Required

            The session cookie. With the exception of the connection request, all requests must provide a session cookie.

              Template
              sessionId

              Required

              The ININ session ID necessary for all calls that require a security or user context.

                Response

                204 - No Content
                The message subscription to status messages has been removed.
                400 - Bad Request
                The request was invalid. This can occur when the message body is malformed or missing required items. This will also occur if a required header or query string parameter is missing or invalid.
                error
                Provides additional detail for an error.
                Property
                Value
                Comments
                errorId
                String
                The error identifier that describes the current error.
                message
                String

                Required

                A message that describes the current error.
                401 - Unauthorized
                The specified session token is missing, invalid, or has expired.
                Parameters
                Type
                Name
                Comments
                Header
                WWW-Authenticate

                Required

                Indicates that the client needs to authenticate using a custom ICWS scheme, which supports a realm of type ICWS and a location which is the URL at which the client can authenticate. A typical example would be the following.

                WWW-Authenticate: ICWS realm="ICWS" location="/ICWS/connection"

                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.
                  410 - Gone
                  This resource has been deprecated and removed from the API.
                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.
                  500 - Internal Server Error
                  An unexpected error occurred while processing the request.
                  error
                  Provides additional detail for an error.
                  Property
                  Value
                  Comments
                  errorId
                  String
                  The error identifier that describes the current error.
                  message
                  String

                  Required

                  A message that describes the current error.