GetDepartment
Call this API to query organization department information.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization information
|
Product |
Resource |
Required permission |
|
Organization Management |
Organization departments |
Read Only |
Request syntax
GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/departments/{id}
Request description |
Enterprise standard editionQuery organization department information
Enterprise dedicated editionQuery organization department information
|
Request headers (Headers) |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId The organization ID. You can go to the Basic Information page in the organization management console to obtain the organization ID (organizationId). |
|
|
id The department ID. |
Response parameters |
Response example
|
|
creatorId The creator ID. |
|
|
hasSub Indicates whether the department has subdepartments. |
|
|
id The department ID. |
|
|
name The department name. |
|
|
organizationId The organization ID. |
|
|
parentId The parent department ID. |
Error codes
For more information, see Error code center.