/icws/{sessionId}/messaging/subscriptions/interactions/{interactionId}/chat

Feature Version
interactions 6

PUT

/icws/{sessionId}/messaging/subscriptions/interactions/{interactionId}/chat

Creates the subscription for chat interactions.
Feature Version
interactions 6

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
        interactionId

        Required

        The interaction ID for the interaction resource.

          Response

          200 - OK
          Subscription has been established for a single Chat Interaction, as identified by the supplied Interaction ID.
          Associated Message
          Members added or removed from chat conversation (or active at the time of initial subscription). Member changes are sent when the typing status of the member changes. It is possible that multiple member adds can come across for the same user in cases where the display name for a user is modified. A combination of a member's userId and interactionId can be used to uniquely identify and detect duplicate member adds.
          chatMembersMessage
          Represents a message containing member modifications for a chat interaction.
          Property
          Value
          Comments
          __type
          "urn:inin.com:interactions.chat:chatMembersMessage"

          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.

          interactionId
          String

          Required

          The ID of the interaction this message corresponds to.
          __type
          "urn:inin.com:interactions.chat:fullChatMember"

          Required

          The JSON type representing this option.
          None
          0
          SystemMember
          1
          CurrentUser
          2
          Internal
          3
          External
          4
          displayName
          String

          Required

          The display name of the chat member.
          interactionId
          String

          Required

          The interaction ID for the updated interaction. A combination of this field and the userId can be used to uniquely identify a user.
          userId
          String

          Required

          The userId of the chat member. A combination of this field and the interactionId can be used to uniquely identify a user.
          isTyping
          Boolean

          Required

          Indicates if this chat member is typing.
          Associated Message
          Messages added to chat conversation (or all messages that have been exchanged at the time of initial subscription).
          chatContentsMessage
          Property
          Value
          Comments
          __type
          "urn:inin.com:interactions.chat:chatContentsMessage"

          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.

          interactionId
          String

          Required

          The ID of the interaction this message corresponds to.

          Multiple options:

          The value can be assigned any of the following options.
          None
          0
          SystemMember
          1
          CurrentUser
          2
          Internal
          3
          External
          4
          displayName
          String

          Required

          The display name of the chat member.
          interactionId
          String

          Required

          The interaction ID for the updated interaction. A combination of this field and the userId can be used to uniquely identify a user.
          userId
          String

          Required

          The userId of the chat member. A combination of this field and the interactionId can be used to uniquely identify a user.
          __type
          "urn:inin.com:interactions.chat:fullChatMember"

          Required

          The JSON type representing this option.
          None
          0
          SystemMember
          1
          CurrentUser
          2
          Internal
          3
          External
          4
          displayName
          String

          Required

          The display name of the chat member.
          interactionId
          String

          Required

          The interaction ID for the updated interaction. A combination of this field and the userId can be used to uniquely identify a user.
          userId
          String

          Required

          The userId of the chat member. A combination of this field and the interactionId can be used to uniquely identify a user.
          isTyping
          Boolean

          Required

          Indicates if this chat member is typing.
          text
          String

          Required

          The chat text.

          This property can be null.

          timestamp
          DateTime

          Required

          The timestamp associated with the chat text.
          Text
          0
          File
          1
          400 - Bad Request
          The request was invalid. This can occur when the message body is malformed or missing required items, or if the interaction is not a chat interaction. 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.
          404 - Not Found
          The interaction does not exist.
          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.
          403 - Forbidden
          You do not have rights to the interaction.
          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/{interactionId}/chat

            Removes the watch subscription for all chat interactions.
            Feature Version
            interactions 6

            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
                  interactionId

                  Required

                  The interaction ID for the interaction resource.

                    Response

                    204 - No Content
                    The subscription to all chat interactions has been removed.
                    400 - Bad Request
                    The request was invalid. This can occur when the message body is malformed or missing required items, or if the interaction is not a chat interaction. 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.
                    404 - Not Found
                    The interaction does not exist.
                    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.
                    403 - Forbidden
                    You do not have rights to the interaction.
                    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.