Skip to content

Disable



POST /api/v1/self_built_checker/disable

Overview

Disable a self-built inspection.

Before Calling and Usage Steps

Set the status of matching self-built inspections to 2 to pause these records. Associated functions are not executed immediately, no new schedules are created, and tasks in external business integrations are not guaranteed to be paused/started; verify the actual execution status on the integration side.

Only UUIDs from the list in this module in the current workspace can be used. If refKey is provided, it is used together with the UUID for filtering and is not an independent way to locate records in batches. Returns true, with no per-item hit/change count; an empty array or no match can also succeed, and the status/association must be read back for verification. On error/timeout, first check the current configuration state; after deletion/submission, an asynchronous dispatch failure may already have been persisted.

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 the required permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
ruleUUIDs[*] string A non-empty string is recommended; do not use a function ID or other rule identifier.
Example: rul_self_example
How to obtain or enter: A single verified self-built inspection UUID.
ruleUUIDs array Declared optional but an array must actually be provided; if omitted, in_(None) may cause a 500, and refKey cannot replace the array. Non-empty is recommended; do not mix in rules of other types or UUIDs from other workspaces.
Null allowed: False
Example: ["rul_self_example"]
How to obtain or enter: Verify the self-built inspection UUIDs in the current workspace one by one from the list in this module.
refKey string Optional additional filter condition that is matched together with each UUID; it is not a substitute for UUID, and you cannot operate on a collection by passing only refKey.
Null allowed: False
Example: custom-healthcheck-production
How to obtain or enter: Enter when you need to additionally check the same business association key.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/self_built_checker/disable' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ruleUUIDs":["rul_self_example"]}'

Response

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

Field Type Description
content boolean true on success; this does not mean every input UUID matched or was actually changed.
{
  "code": 200,
  "content": true,
  "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
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 Invalid request JSON syntax Request JSON format error Correct the JSON according to content.reason, line, and column.
500 ft.InternalServerError No target selected, invalid field shape or length, database failure, or asynchronous task dispatch failure after submission Internal error First read back the current rule to confirm whether it has been saved; retry after using an explicit ruleUUID in the current workspace, and provide the traceId.

Feedback

Is this page helpful?