Skip to content

Delete Evaluator



POST /api/v1/agent_eval/evaluator/{evaluator_uuid}/delete

Overview

Deletes the specified custom evaluator in the current workspace.

Prerequisites and Usage Steps

Use the DF-API-KEY of the target workspace; even for read-only operations, the Agent Monitoring application configuration management permission is required. Only custom evaluators in the current workspace can be operated on; built-in system evaluators are not exposed. Parameters must be placed only in the corresponding Query/path or JSON body; body parameters in the URL are not allowed. Before deletion, get details to verify the name and UUID. No body is required. A successful response returns only the deleted uuid, name, and the common declaration; this cannot be used to infer that historical traces or evaluation results have also been deleted. Deleting repeatedly returns 404 and is not an idempotent success. For timeout results, first confirm with the details: if the object does not exist, there is no need to delete it again; do not automatically retry with a different UUID.

Route Parameters

Parameter Name Type Required Description
evaluator_uuid string Y UUID of a custom evaluator in the current workspace; built-in system evaluators and UUIDs from other workspaces are treated as non-existent.
Example: aeve_0123456789abcdef0123456789abcdef
How to obtain or fill in: obtain from content.uuid in Create Evaluator or content.data[].uuid in List Evaluators.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y OpenAPI credential of the target workspace; both reading and writing require the Agent Monitoring application configuration management permission, and the associated role must be owner, wsAdmin, or general.
Example: <DF-API-KEY>
How to obtain or fill in: create and authorize it in the API Key management of the target workspace, and pass it via the DF-API-KEY request header; do not put a real Key in URLs or examples.

Additional Parameter Notes

This API requires no request body. After deletion, the UUID can no longer be managed, and deleting it repeatedly returns resource not found.

Request Example

curl 'https://openapi.truewatch.com/api/v1/agent_eval/evaluator/aeve_0123456789abcdef0123456789abcdef/delete' \ --request POST \ --header 'DF-API-KEY: '

Response

HTTP 200, application/json. The success wrapper and fields are as follows; for failures, see the common errors and the exception handling on this page.

Field Type Description
code integer Business response status, 200 on success.
errorCode string Empty on success; a specific error code on failure.
message string Empty on success; an error message on failure.
success boolean Whether the operation succeeded.
traceId string Trace identifier of this request; keep it when troubleshooting.
content object Identifier of the successfully deleted resource.
content.uuid string UUID of the deleted evaluator.
content.name string Name of the deleted evaluator.
content.declaration object or null Common declaration of this workspace; it may be an empty object or null when not configured. Only this content level in the list carries it, and it is not supplemented item by item in data[].
{
    "code": 200,
    "content": {
        "uuid": "aeve_0123456789abcdef0123456789abcdef",
        "name": "LLM 回答完整性",
        "declaration": {}
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "example-trace-id"
}

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 The request contains undeclared parameters, or a declared request field fails type/constraint validation 参数解析失败 Submit only the request headers, path, and Query parameters declared on this page; this API does not require a JSON request body.
406 ft.InvalidParameterV2 A body parameter is carried in the URL Send evaluator parameters in the JSON request body. Remove the body parameter from the URL; this API requires no request body.
404 ft.ObjectNotExists The target evaluator does not exist, belongs to another workspace, or is a built-in system evaluator Agent evaluator does not exist Obtain content.data[].uuid from the current workspace list and verify it; if a delete response timed out and the target does not exist, do not delete it again.
500 ft.InternalServerError An unhandled exception occurs while deleting the database record, writing the audit log, or in another dependency 内部错误 Keep the traceId and first confirm via details or the list whether the target has been deleted; if it does not exist, there is no need to delete it again, and do not treat a failed response as a sign that the deletion did not take effect.