Skip to content

Get Default Configuration Status



GET /api/v1/incidents/level/config/get

Overview

Read the enable/disable switch for the default incident levels in the current workspace.

Prerequisites and Usage Steps

The Key must match one of routine.defaultAccess or incidents.incidentsLevelManage, and only for the workspace the Key belongs to. This module shares the underlying levels and default level configuration with the Issue level API; a change may affect both Incident and Issue level selection. It does not create an independent copy just for this module. When global levels are enabled in the backend, the effective level selection may be determined first by the global configuration; the management list for this workspace still lists only default and workspace custom items and does not include backend global levels. Ask your administrator to confirm the effective scope before making changes, and do not treat every item in the management list as an available level.

Returns a configuration value object, not a configuration database entity; when there is no configuration record, isDisabled=false, meaning the four default levels are enabled. It does not include the custom level list or the backend global switch. Reading the Incident Level List shows both default and custom items, but you still need to determine the actual effective rules.

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 fill in: Get an OpenAPI Key with this operation permission from API Key management in the target workspace.

Request Example

curl --get 'https://openapi.guance.com/api/v1/incidents/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 Switch for the four default levels in the current workspace; false means enabled, true means disabled. false when there is no configuration.
content.declaration object Public declaration for the current workspace.
{
  "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.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
500 ft.InternalServerError Unhandled exceptions such as database reads, legacy object/configuration formats, or related summary construction Internal error Verify the query parameters and retain the traceId; retry with backoff. If the failure persists, ask your administrator to check the related historical records and service logs.

Feedback

Is this page helpful?