/icws/{sessionId}/messaging/subscriptions/directories

Feature Version
directories 4

PUT

/icws/{sessionId}/messaging/subscriptions/directories

Creates or updates a subscription to all directory metadata accessible to this session and user.
Feature Version
directories 4

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 directory metadata subscription has been updated.
        Associated Message
        The directory metadata has changed.
        directoriesMessage
        Contains any changes to directory metadata available to this session and user.
        Property
        Value
        Comments
        __type
        "urn:inin.com:directories:directoriesMessage"

        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.

        read
        Boolean
        Permission to read a directory.
        create
        Boolean
        Permission to create a new directory.
        update
        Boolean
        Permission to update a directory.
        delete
        Boolean
        Permission to delete a directory.
        rename
        Boolean
        Permission to rename a directory.
        primaryNumber
        Boolean
        Permission to access a primary number designation.
        admin
        Boolean
        Administrative rights to a directory.
        count
        Int
        A count of the directory's contacts if known.
        canRefresh
        Boolean
        A value indicating whether the directory can be refreshed. This property will be ommitted if the directory cannot be refreshed.
        company
        0
        Represents a company directory.
        workgroup
        1
        Represents an Interaction Center workgroup as a directory.
        general
        2
        Represents an external directory. For example Interaction Center Private Contacts.
        stationGroup
        3
        Represents an Interaction Center station group as a directory.
        speedDial
        4
        Represents a directory for speed dial entries.
        groupAndProfile
        5
        Represents a directory for Attendant workgroups and profiles.
        tracker
        6
        Represents an Interaction Tracker directory.
        directoryID
        String

        Required

        The directory's ID.
        displayName
        String

        Required

        The directory's display name.
        list
        0
        Represents a list.
        filter
        1
        Represents a filter.
        speedDial
        2
        Represents a speed dial.
        tracker
        3
        Represents Interaction Tracker.
        hasActivation
        Boolean
        A value indicating whether the directory has activation information. This property will be omitted if the directory does not have activation information.
        hasDynamicFields
        Boolean
        A value indicating whether the directory has dynamic fields. This property will be omitted if the directory does not have dynamic fields.
        hasStatus
        Boolean
        A value indicating whether the directory has status information. This property will be omitted if the directory does not have status information.
        isPrivate
        Boolean
        A value indicating whether the directory is private. This property will be omitted if the directory is not private.
        ownerID
        String
        The directory's owner ID. This property will be omitted if the directory does not have an owner ID.
        schemaID
        String

        Required

        The directory's schema ID.
        directoriesRemoved
        List [1,*]: String
        The set of directories that have been removed.
        company
        Boolean
        Represents the company directory category.
        workgroup
        Boolean
        The category for all workgroup directories.
        general
        Boolean
        The category for all general directories.
        stationGroup
        Boolean
        The category for all station group directories.
        speedDial
        Boolean
        The category for all speed dial directories.
        groupAndProfile
        Boolean
        The category for all group and profile directories.
        tracker
        Boolean
        The category for all Tracker directories.
        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/directories

          Deleted the directory metadata subscription.
          Feature Version
          directories 4

          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 directory metadata subscription was deleted.
                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.