English
Set Department Status
About 130 wordsLess than 1 minute
2026-10-23
Description
This interface is no longer maintained. Use the object-based interface (Update Department Object) instead.
Request Specification
Method: POST + application/json
Endpoint: https://${Cloud Domain}/cgi/department/setstatus?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| departmentId | Int | Yes | Department ID |
| status | Int | Yes | Status (1: disabled, 2: enabled) |
Request Example
{
"departmentId": 1.0,
"status": 1.0
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| dataId | String | Data ID |
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error Codes |
Response Example
{
"dataId": "68faxxxxxx",
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}Notes
- Do not use the
messagefield in the response for logical judgments, aserrorMessagemay change.
