/icws/{sessionId}/messaging/subscriptions/interactions/agent-assistance/{assistanceId}

PUT

/icws/{sessionId}/messaging/subscriptions/interactions/agent-assistance/{assistanceId}

Creates a watch subscription for an agent assistance request.
Feature Version
interactions 9

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.

        Template
        assistanceId

        Required

        The assistance ID for the assistance request.

          Response

          204 - No Content
          The subscription for the agent assistance request has been updated.
          Associated Message
          Details of an assistance request have changed.
          assistanceRequestDetailsMessage
          Provides data for an assistance request event.
          Property
          Value
          Comments
          __type
          "urn:inin.com:interactions.assistance:assistanceRequestDetailsMessage"

          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.

          assistanceId
          String

          Required

          The assistance ID for this assistance request.
          interactionId
          String
          The interaction ID associated with the assistance request.
          None
          0
          Accepted
          1
          Completed
          2
          text
          String

          Required

          The message text.
          participantId
          String

          Required

          The user ID of the participant that added the message text.
          timeAdded
          DateTime

          Required

          The date and time the message text was added.
          userId
          String

          Required

          The user ID of the participant.
          displayName
          String

          Required

          The display name of the participant.
          None
          0
          Initiated
          1
          Ignored
          2
          Accepted
          3
          Associated Message
          The states, of any assistance request subscriptions, have changed.
          Feature Version
          interactions 10
          assistanceRequestSubscriptionStateMessage
          Feature Version
          interactions 10
          Property
          Value
          Comments
          __type
          "urn:inin.com:interactions.assistance:assistanceRequestSubscriptionStateMessage"

          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.

          none
          0
          There is no subscription.
          normal
          1
          Subscriptions are working as expected. Suspended subscriptions can be resumed, returning them to this state.
          suspended
          2
          Suspended subscriptions have become incapable of sending their associated message. Suspended subscriptions can be resumed, returning them to the normal state.
          faulted
          3
          Faulted subscriptions have encountered a problem they cannot recover from, so they've ended themselves. A subsequent DELETE request, on a faulted subscription, is not necessary, but it cannot be resumed, and will need to be re-made.
          errorId
          String
          The error identifier that describes the current error.
          message
          String

          Required

          A message that describes the current error.
          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/interactions/agent-assistance/{assistanceId}

            Removes watch subscription for agent assistance requests.
            Feature Version
            interactions 9

            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.

                  Template
                  assistanceId

                  Required

                  The assistance ID for the assistance request.

                    Response

                    204 - No Content
                    The watch subscription to the agent assistance request 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.