Skip to content

Delete



POST /api/v1/field_cfg/delete

Overview

Soft delete custom field configurations in the current workspace in batches.

Before You Begin and Usage Steps

Use the API Key of the target workspace. This configuration adds display aliases, descriptions, units, and categories to existing fields; it does not create collected fields, modify actual data types, or backfill historical data. Custom configurations with the same field source and exactly the same name (case-sensitive) cannot be duplicated; different sources may share the same name.

Submit an array of custom configuration UUIDs. Only records in the current workspace with sysField=0 that have not been deleted are deleted; built-in, cross-workspace, not-found, or already-deleted UUIDs are ignored. A return value of true does not include the matched/deleted count; [] can also succeed. After deletion, the list re-exposes built-in fields that were previously overridden by a custom configuration with the same source and name; actual collected data is not deleted. If cache clearing fails after submission, a 500 may be returned; you must read back to verify and then retry; repeated deletion after confirmation is usually a no-op success.

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
objUUIDs[*] string A single UUID to delete; unknown/cross-workspace/built-in ones are not deleted.
Example: field_example
How to obtain or fill in: Enter the UUID of each target custom configuration.
objUUIDs array Y Required array; each item should be a non-empty UUID string; the server does not fully validate element types.
Null allowed: False
Example: ["field_example"]
How to obtain or fill in: Select the uuid array of sysField=0 records from the Field List.

Additional Parameter Notes

Only the field display configuration is deleted; actual data and built-in configurations are retained.

Request Example

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

Response

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

Field Type Description
content boolean Returns true when processing completes; this does not mean all requested UUIDs were deleted.
{
  "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 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.
500 ft.InternalServerError Write, post-submission cache clearing, or response assembly failed Internal error First verify the submitted state via list/details, then decide whether to retry to avoid duplicate creation.

Feedback

Is this page helpful?