Skip to content

Update Default Configuration Status



POST /api/v1/issue-level/config/set

Overview

Enable or disable the system default Issue level for the current workspace.

Before You Begin and Usage Steps

isDisabled=true disables and false enables. On success, the configuration record is returned; read the actual switch from content.config.isDisabled. When reading the configuration API again, the switch is located at content.isDisabled. This setting does not automatically modify historical Issues, nor does it delete custom levels. The current version does not enforce that at least one custom level must be retained; before disabling, confirm the valid level list and business usage. If platform global levels take precedence, this workspace switch does not override the global selection. Operations use the workspace to which the current API Key belongs; obtain the resource identifier from the same workspace.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with the required permission from API Key management in the target workspace.

Body Request Parameters

Parameter Type Required Description
isDisabled bool Y Required boolean; true disables and false enables.
Allows null: False
Example: true
How to obtain or fill in: Choose based on whether the system default level should continue to be provided; use true to disable and false to restore.

Additional Parameter Notes

The setting records an enable or disable audit but does not directly send Issue create/change notifications.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/issue-level/config/set' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"isDisabled":true}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer or null Record ID. The response for creating an Issue/reply may be null when constructed before persistence; use uuid to operate on the resource.
content.uuid string Resource UUID.
content.workspaceUUID string UUID of the workspace it belongs to.
content.status integer Record status; 0 normal, 3 deleted. Distinct from the Issue business status statusType.
content.creator string Identity of the creation call, which may be an API Key identifier, an account, or a system identity.
content.updator string Identity of the most recent update; an empty string when not set.
content.createAt integer Creation time, Unix seconds.
content.updateAt integer Last update time, Unix seconds; may be -1 when not updated.
content.deleteAt integer Deletion time, Unix seconds; -1 when not deleted.
content.keyCode string Type identifier of the configuration record.
content.config object Switch configuration.
content.config.isDisabled boolean Saved disable switch for the system default level.
content.declaration object or null Workspace public declaration; attached only at the content level.
{
  "code": 200,
  "content": {
    "id": 401,
    "uuid": "ctcf_example",
    "workspaceUUID": "wksp_example",
    "status": 0,
    "creator": "wsak_example",
    "updator": "",
    "createAt": 1785430800,
    "updateAt": -1,
    "deleteAt": -1,
    "keyCode": "IssueLevelDisabled",
    "config": {
      "isDisabled": true
    },
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed A request field is missing, or a field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError The request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The JSON top level is not an object Some json file format error Submit a JSON object.
500 ft.InternalServerError Saving the level or configuration, auditing, or another internal processing step failed Internal error First read the current level or configuration to confirm the result, then decide whether to retry; if the failure persists, provide the traceId.

Feedback

Is this page helpful?