Get information about all departments of the enterprise
| Properties | Values |
|---|---|
| HTTP methods | GET |
| Interface path | /nd/api/enterprise/departments |
| Category | Enterprise API |
Interface description
Interface path: /nd/api/enterprise/departments
HTTP method: GET
HTTP method: GET
URL parameters
None.
Return field description
| Field | Type | Description |
|---|---|---|
departments |
array | Department information |
tree |
object | Department parent-child structure |
code |
int |
Not specified |
success |
boolean |
Success flag; the confirmed response key is success. |
Scroll horizontally to view all columns
Call instructions
- Before calling, you need to complete Get token or the corresponding login-free authentication, and carry
Authorization: Bearer <access_token>in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: Enterprise API.