UpdateDepartment
Update the department name based on the Artificial Intelligence Cloud Call Service (AICCS) instance ID and department ID.
Operation description
This API supports updating only the department name and does not support updating the department ID.
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.
After the update is complete, you can invoke the GetAllDepartment API to confirm whether the department information matches your expectations.
Queries per second (QPS) limits
Per-user invocation frequency: 100 times/second.
API-wide invocation frequency: 100 times/second.
If the total invocations from multiple users exceed the API-wide 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-*** |
| DepartmentName |
string |
Yes |
The department name. Note
This parameter supports updates. |
部门A |
| DepartmentId |
integer |
Yes |
The department ID. You can invoke the GetAllDepartment API and view the DepartmentId field in the response to obtain the department ID. Note
This parameter does not support updates. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
98B032F5-6473-4EAC-8BA8-C28993513A1 |
| Message |
string |
Description of the status code. |
successful |
| 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-C28993513A1",
"Message": "successful",
"HttpStatusCode": 200,
"Data": true,
"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.