Delete¶
POST /api/v1/blacklist/delete
Overview¶
Soft-deletes blacklist rules in the current workspace.
Before You Begin and Usage Steps¶
First verify each UUID, rule name, and scope in the list, then submit a string array. The server processes only non-deleted matching items in the current workspace. An empty array, all unknown UUIDs, or cross-workspace UUIDs may also return true, and no per-item match results are provided.
This API soft-deletes rules (status=3); it does not trigger restoration of historical data. After success, re-read each item or check the list; do not treat true as the actual number of deleted items. This operation only soft-deletes the selected rules and does not create or expand the filtering scope; previously filtered historical data is not restored, and subsequent effectiveness still requires verification with controlled samples.
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 |
|---|---|---|---|
| blacklistUUIDs[*] | string | String elements. Do not pass null, numbers, or objects; otherwise strip processing may return 500. Example: blist_exampleHow to obtain or enter: Get the UUID of a single rule from the Blacklist List. |
|
| blacklistUUIDs | array | Y | Required array of rule UUIDs, not a comma-separated string. The server trims leading and trailing whitespace from each item and ignores empty strings; unmatched UUIDs are ignored in some batch operations, so each item still needs to be verified. Allows null: False Example: ["blist_example"]How to obtain or enter: Obtain the actual UUIDs from the Blacklist List. |
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/blacklist/delete' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"blacklistUUIDs":["blist_example"]}'
Response¶
HTTP 200, application/json. The example below shows the primary fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | boolean | true on success; does not indicate that all UUIDs matched or that a status change occurred. |
{
"code": 200,
"content": true,
"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 required 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 | Request JSON syntax is invalid | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | JSON top level is not an object | Some JSON file format error | Submit the JSON object in the parameter table. |
| 500 | ft.InternalServerError | Database, storage length/null, field shape, or subsequent processing exception | Internal error | Query the rule and its configuration before deciding whether to retry; if it persists, retain the traceId. |
| 403 | ft.Forbidden | API Key lacks permission for the current operation | You do not have permission for this operation | Use an API Key for the current workspace that has permission for the operations on this page. For actual feature availability, verify against the site configuration. |