DeleteDepartment
Deletes department information based on the Artificial Intelligence Cloud Call Service (AICCS) instance ID and department ID.
Operation description
-
Deletion is a sensitive operation. Proceed with caution.
-
Before invoking this API, we recommend that you confirm the AICCS instance ID and department ID. For guidance on how to obtain them, see the instructions in Request Parameters.
-
If you accidentally delete department information, you can call the CreateDepartment API to recreate it.
Queries per second (QPS) limit
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 AICCS instance ID. |
ccc_xp_pre-cn-*** |
| DepartmentId |
integer |
Yes |
The department ID. You can call the GetAllDepartment API and check the DepartmentId field in the response to obtain the department ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
98B032F5-6473-4EAC-8BA8-C28993513A1F |
| Message |
string |
Description of the status code. |
seccessful |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the operation succeeded. Valid values:
|
true |
| Code |
string |
The status code. A value of 200 indicates that the request succeeded. |
200 |
| Success |
boolean |
Indicates whether the API was invoked successfully. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "98B032F5-6473-4EAC-8BA8-C28993513A1F",
"Message": "seccessful",
"HttpStatusCode": 200,
"Data": true,
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Department.NotFound | The specified department does not exist. | |
| 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.