GetSysDept - Get department information
Retrieves the details of a specific enterprise department.
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 |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Request syntax
GET https://{domain}/oapi/v1/platform/departments/{id}
Request |
Get department information
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
id The department ID. You can obtain this ID by calling the ListSysDepts operation. |
Response parameters |
Sample response
|
|
id The ID of the department. |
|
|
name The name of the department. |
|
|
creatorId The ID of the user who created the department. |
|
|
parentId The ID of the parent department. |
|
|
hasSub Specifies whether the department has subdepartments.
|
Error codes
For more information, see Error code center.