GetAllDepartment
getAllDepartment
Operation description
You can invoke this API to obtain department IDs for department group queries in certain data query APIs (such as GetHotlineServiceStatistics).
After creating, deleting, or updating department information, you can invoke this API to confirm whether the department information matches your expectations.
Queries per second (QPS) limits
Per-user invocation frequency: 100 times/second.
API invocation frequency: 100 times/second.
If the total invocations from multiple users exceed the API frequency limit, throttling will be triggered.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The Artificial Intelligence Cloud Call Service (AICCS) instance ID. |
ccc_xp_pre-cn-*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Returned data. |
||
| Message |
string |
Description of the status code. |
successful |
| RequestId |
string |
Request ID. |
98B032F5-6473-4EAC-8BA8-C28993513A1F |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
| Data |
array<object> |
Department information. |
|
|
object |
Department information. |
||
| DepartmentName |
string |
Department name. |
部门A |
| DepartmentId |
integer |
Department ID. |
10 |
| Code |
string |
Status code. A return value of 200 indicates that the request succeeded. |
200 |
| Success |
boolean |
Indicates whether the API invocation succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"Message": "successful",
"RequestId": "98B032F5-6473-4EAC-8BA8-C28993513A1F",
"HttpStatusCode": 200,
"Data": [
{
"DepartmentName": "部门A",
"DepartmentId": 10
}
],
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | A system error occurred. Please contact the administrator. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.