Get Departments by Unit ID
    • Dark
      Light
    • PDF

    Get Departments by Unit ID

    • Dark
      Light
    • PDF

    Article summary

    Get
    Deprecated
    /api/v1/livechat/departments.by-unit/{unitid}
    Premium tag

    Gives departments included in a specific unit ID. This endpoint has been renamed to Get Departments by Unit ID as from Rocket.Chat 5.0

    Header parameters
    X-Auth-Token
    stringRequired

    The authToken of the authenticated user.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    X-User-Id
    stringRequired

    The userId of the authenticated user.

    ExamplerbAXPnMktTFbNpwtJ
    Path parameters
    unitid
    stringRequired

    The unit ID.

    Examplesriw2wmP2Zz2pPrre
    Query parameters
    start
    stringRequired

    The start date.

    Example2020-09-10T23:59:22.345Z
    end
    stringRequired

    The end date.

    Example2020-09-09T00:11:22.345Z
    Responses
    200

    OK

    Expand All
    object
    departments
    Array of object
    object
    _id
    string
    enabled
    boolean
    name
    string
    description
    string
    showOnRegistration
    boolean
    showOnOfflineForm
    boolean
    requestTagBeforeClosingChat
    boolean
    email
    string
    maxNumberSimultaneousChat
    string
    waitingQueueMessage
    string
    type
    string
    numAgents
    integer
    _updatedAt
    string
    ancestors
    Array of string
    string
    chatClosingTags
    Array of object
    object
    abandonedRoomsCloseCustomMessage
    string
    departmentsAllowedToForward
    Array of string
    string
    offlineMessageChannelName
    string
    visitorInactivityTimeoutInSeconds
    string
    parentId
    string
    count
    integer
    offset
    integer
    total
    integer
    success
    boolean


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.