Evaluators
Archive an evaluator
Soft delete: the evaluator takes no new versions and leaves the default list. Its versions and scores are kept, and the name stays reserved. Idempotent.
DELETE
/
v1
/
evaluators
/
{id_or_name}
Archive an evaluator
curl --request DELETE \
--url https://api.veri.studio/v1/evaluators/{id_or_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/evaluators/{id_or_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/evaluators/{id_or_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"latest_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"version": {
"object": "<string>",
"evaluator_id": "<string>",
"version": 123,
"method": "<string>",
"scope": "<string>",
"output_type": "<string>",
"output_config": "<unknown>",
"method_config": "<unknown>",
"bindings": "<unknown>",
"requires_reference": true,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
},
"description": "<string>",
"archived_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"versions": [
{
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
]
}Authorizations
Response
The archived evaluator
Archive an evaluator
curl --request DELETE \
--url https://api.veri.studio/v1/evaluators/{id_or_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/evaluators/{id_or_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/evaluators/{id_or_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"latest_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"version": {
"object": "<string>",
"evaluator_id": "<string>",
"version": 123,
"method": "<string>",
"scope": "<string>",
"output_type": "<string>",
"output_config": "<unknown>",
"method_config": "<unknown>",
"bindings": "<unknown>",
"requires_reference": true,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
},
"description": "<string>",
"archived_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"versions": [
{
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
]
}
