Show Department
GET /services/api/v1/departments/{id}
Returns the requested department.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the department. |
Response
Requested department.
- Example
- Schema
{
"id": "A96ey16n",
"ancestor_id": null,
"depth": 0,
"subtree_ids": ["A96ey16n"],
"has_public_name": true,
"ancestor_ids": [],
"name_en": "Administration",
"name_de": "Verwaltung",
"name_it": "Amministrazione",
"public_name_en": "Administration",
"public_name_de": "Verwaltung",
"public_name_it": "Amministrazione"
}
Attribute | Type | Description |
---|---|---|
id | string | Department id |
depth | int | Department tree depth of the current node |
ancestor_id | string | Department tree ancestor |
subtree_ids | string[] | Department subtree nodes |
ancestor_ids | string[] | Department ancestors |
has_public_name | boolean | Determines if the public name on, for example, career pages should be different than the internal name of the department |
name_{locale} | string | Department name in all locales of the business. |
public_name_{locale} | string | Department public name in all locales of the business. |