System Dictionaries

Get all company divisions

Returns a list of company divisions.


Restrictions:

  • Users of type watcher can only see their own available divisions
get/accounts/{account_id}/divisions

Request

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

Path parameters

account_idinteger required

Query parameters

only_availableboolean

If supplied, then only divisions available to the current user will be returned

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.