Modify Default Configuration Status¶
POST /api/v1/account/status/modify
Overview¶
Requests modification of the on-call status for the current calling identity; the current standard API Key entry has an identity compatibility limitation.
Prerequisites and Usage Steps¶
This path is used for the on-call/leave status of the current calling identity, not for workspace member management or account enable/disable; there is no accountUUID parameter for specifying another account.
Current standard DF-API-KEY calls have an identity compatibility limitation: for regular workspace Keys and personal Keys, the current actor is the Key UUID, while the business query that handles status reads by account UUID. A normal Key therefore cannot match a regular account and typically returns 500. This cannot be resolved by changing working/mute, increasing role permissions, or switching from a workspace Key to a personal Key. This page retains the public path and declarations for compatibility troubleshooting and does not provide a fabricated 200 success example. Use the personal account feature in the console, or fix this entry on the server before integrating automatic switching.
The request field only declares accountStatus; you cannot additionally submit an account UUID or replace the authentication header to bypass this limitation. When an error occurs, record the traceId and contact your administrator; avoid automatic retry loops. The Front account login session API uses a different identity chain; its success behavior does not mean this OpenAPI Key entry is available. Historical custom data or internal direct calls also cannot be treated as a regular success contract.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| accountStatus | string | Y | Required string; an empty string is allowed; the declaration has no enum/length limit. However, an empty value or any string will not make the current Key call succeed; this value is also not the account enable/disable status. Allow null: False Allow empty string: True Example: workingHow to obtain or enter: Use working while on-call and mute while on leave; the current Key identity limitation is independent of the value. |
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/account/status/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"accountStatus":"working"}'
Response¶
Current standard API Key requests typically return HTTP 500 with the error JSON below. This page does not confirm the 200 account details that a normal Key can obtain; the identity compatibility limitation must be resolved before integration.
| Field | Type | Description |
|---|---|---|
| code | integer | Current identity compatibility failures are typically 500; parameter/authentication errors are returned according to the actual HTTP status and response envelope. |
| content | object | The 500 example on this page is an empty object {}, not account details. |
| errorCode | string | This issue is typically ft.InternalServerError; for other authentication/parameter errors, see the error table and common notes. |
| message | string | Error text intended for the caller; it may be displayed according to the request language. |
| success | boolean | For the current error, this is false; do not determine success based solely on a successful HTTP connection. |
| traceId | string | Troubleshooting correlation ID; provide it when reporting feedback. |
{
"code": 500,
"content": {},
"errorCode": "ft.InternalServerError",
"message": "内部错误",
"success": false,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
This page shows the failure structure observable in current standard OpenAPI calls. Success responses from Front login sessions and internal direct account UUID passing are not presented as success examples for this path; historical abnormal account/Key data must be verified separately.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The top level of the request JSON is not an object | Some JSON file format errors | Submit a JSON object containing accountStatus. |
| 500 | ft.InternalServerError | The actor of a normal API Key cannot match a regular account and directly updates an empty object; or other unhandled storage errors | Internal error | The current entry cannot be used to automatically switch on-call status; contact your administrator to handle identity compatibility, retain the traceId, and stop blind retries. |