System Dictionaries

Get company divisions available to the specified user

Returns a list of company divisions available to the specified user.

Note: Coworker's company divisions are cached for 10 minutes. If a coworker's company divisions list has been changed, these changes will be displayed after a maximum of 10 minutes


Restrictions:

  • Users of type watcher can not see coworker's company divisions
get/accounts/{account_id}/coworkers/{coworker_id}/divisions

Request

  • Base URL: https://api.huntflow.ru/v2
  • URL: https://api.huntflow.ru/v2/accounts/{account_id}/coworkers/{coworker_id}/divisions
  • Auth: HTTP bearer

Path parameters

account_idinteger required
coworker_idinteger required

Coworker ID

Response

Successful Response

Example response

{
  "items": [
    {
      "id": 2,
      "name": "IT Department",
      "order": 1,
      "parent": 1,
      "foreign": "it_department",
      "meta": {
        "lead": "test@example.com"
      }
    }
  ],
  "meta": {
    "levels": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.