/icws/{sessionId}/status/user-statuses/{userId}

GET

/icws/{sessionId}/status/user-statuses/{userId}

Retrieves specified user's status.
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.

        Template
        userId

        Required

        The ID of the user resource.

          Response

          200 - OK
          The specified user's status representation is in the entity body.
          userStatus
          A single user status.

          Note

          User statuses only contain the statusId property and additional members specific to a user. Clients need to retrieve status messages in order to map to a status message (for messageText etc.) using the statusId property.

          Property
          Value
          Comments
          userId
          String

          Required

          The unique identifier for this user status to update. This is the IC User name.

          statusId
          String

          Required

          The ID of the status message that the specified user is currently set to.

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

          notes
          String

          The status message notes set by user.

          forwardNumber
          String

          The forward number set by user.

          untilDateTime
          DateTime

          Required

          The status until date and time.

          Note

          This property will only be applied if CanHaveDate and CanHaveTime are true.

          hasDate
          Boolean

          Required

          This has to do with UI, not the untilDateTime.
          hasTime
          Boolean

          Required

          This has to do with UI, not the untilDateTime.
          onPhone
          Boolean

          This property indicates whether the user is on phone.

          onPhoneChanged
          DateTime

          This property is updated when status on onPhone changes.

          statusChanged
          DateTime

          This property is update when user status changes.

          stations
          List [Unbounded]: String

          The stations on which the user is logged in.

          icServers
          List [Unbounded]: String

          The name of the icServers to which the user is connected to.

          presenceServer
          String

          The name of the server that is providing status for this user.

          loggedIn
          Boolean

          Indicates whether or not the user is logged into a station.

          403 - Forbidden
          The requesting user does not have the rights to see the requested user's status.
          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 specified user 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.
          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.

            PUT

            /icws/{sessionId}/status/user-statuses/{userId}

            Updates the specified user's status.

            The notes member is not cleared unless explicitly set to an empty string. The until member, however, is cleared if not included. As an example:

            • Update status with notes and untilDateTime:

              {"statusId" : "On Vacation","notes" : "Touring France","until" : {"untilDateTime":"2012-02-16T16:42Z","hasDate":true,"hasTime":true}}

            • Update status to On Vacation:

              {"statusId" : "On Vacation"}

            The net result of the two example requests above does not have an until member set; the user status does have notes.

            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.

                  Template
                  userId

                  Required

                  The ID of the user resource.

                    Representations
                    userStatusUpdate
                    Property
                    Value
                    Comments
                    statusId
                    String

                    Required

                    The ID of the new status. This ID can access the status message definition in StatusMessageList.

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

                    notes
                    String
                    The status notes (can be epmty string).
                    forwardNumber
                    String
                    The status forward number. This property is not required except when the property statusId is set to a forwarding status.
                    untilDateTime
                    DateTime

                    Required

                    The status until date and time.

                    Note

                    This property will only be applied if CanHaveDate and CanHaveTime are true.

                    hasDate
                    Boolean

                    Required

                    This has to do with UI, not the untilDateTime.
                    hasTime
                    Boolean

                    Required

                    This has to do with UI, not the untilDateTime.

                    Response

                    202 - Accepted
                    The specified user's status update was accepted for processing. The client should wait for the new status via a UserStatusMessage and the completion of the operation via an AsyncOperationCompletedMessage.
                    asyncOperationAcceptedResponse
                    Represents the successful initiation of an asynchronous operation.
                    Property
                    Value
                    Comments
                    requestId
                    String

                    Required

                    The ID associated with the asynchronous operation request. This can be used to correlate future events and operations.
                    Associated Message
                    The async operation of updating the specified user's status has been completed.
                    asyncOperationCompletedMessage
                    Property
                    Value
                    Comments
                    __type
                    "urn:inin.com:messaging:asyncOperationCompletedMessage"

                    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.

                    requestId
                    String

                    Required

                    errorId
                    String
                    The error identifier that describes the current error.
                    message
                    String

                    Required

                    A message that describes the current error.
                    400 - Bad Request
                    This may indicate malformed syntax or that a status specified does not exist. If needed, the entity-body will indicate if an unknown status caused the error.

                    Error Responses

                    Error Identifier
                    Error Type
                    Error Description
                    error.request.invalidRepresentation.malformed
                    Type: urn:inin.com:common:error
                    The request representation object was malformed.
                    Feature Version
                    status 2
                    error.request.invalidRepresentation.missingRequired
                    Type: urn:inin.com:common:missingPropertyError
                    The request representation object was missing a required property.
                    Feature Version
                    status 2
                    error
                    Provides additional detail for an error.
                    Property
                    Value
                    Comments

                    Multiple options:

                    The value can be assigned any of the following options.
                    errorId
                    String
                    The error identifier that describes the current error.
                    message
                    String

                    Required

                    A message that describes the current error.
                    __type
                    "urn:inin.com:common:missingPropertyError"

                    Required

                    The JSON type representing this option.
                    errorId
                    String
                    The error identifier that describes the current error.
                    message
                    String

                    Required

                    A message that describes the current error.
                    propertyName
                    String
                    The name of the missing required property.
                    403 - Forbidden
                    The session user does not have permission to change the specified user's status.
                    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.