Skip to content

Get Default Configuration Status



GET /api/v1/issue-level/config/get

Overview

Read the enable switch for the system default Issue levels in the current workspace.

Before You Begin and Usage Steps

No Query parameters are required. content.isDisabled=false indicates that system default levels are enabled, while true indicates they are disabled; if the configuration has not been saved yet, the default is false. This switch does not represent the final effective level set. When levels are enabled globally across the platform, the global levels take precedence. Use the Effective Level List to confirm the available options. The operation applies to the workspace that owns the current API Key; obtain resource identifiers 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 this operation permission from API Key management in the target workspace.

Additional Parameter Notes

The read result is the switch object itself; it differs from the full configuration record structure returned by the settings API.

Request Example

curl --get 'https://openapi.guance.com/api/v1/issue-level/config/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

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

Field Type Description
content.isDisabled boolean Whether the system default levels are disabled; the default is false.
content.declaration object or null Workspace public declaration; attached only at this content level.
{
  "code": 200,
  "content": {
    "isDisabled": false,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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

When the switch has not been saved, the request succeeds and returns isDisabled=false instead of reporting that the configuration does not exist; for authentication, version, and rate limiting failures, see the common error descriptions.

Feedback

Is this page helpful?