curl --request DELETE \
--url https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"branchName": "<string>",
"testId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"codeObjectId": "<string>",
"evaluationRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"observation": 123,
"unit": "<string>",
"verdict": {
"name": "<string>",
"score": 123,
"criteriaTarget": "<string>"
},
"evidence": {},
"failure": {
"code": "EVALUATION_SCOPE_MISSING",
"message": "<string>",
"infrastructure": true,
"details": {}
},
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"branchName": "<string>",
"testId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"codeObjectId": "<string>",
"evaluationRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"observation": 123,
"unit": "<string>",
"verdict": {
"name": "<string>",
"score": 123,
"criteriaTarget": "<string>"
},
"evidence": {},
"failure": {
"code": "EVALUATION_SCOPE_MISSING",
"message": "<string>",
"infrastructure": true,
"details": {}
},
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Cancel a Test run
Requests cancellation and evaluation-sandbox cleanup. The operation is
idempotent. A run already completed remains completed; a run that can be
interrupted moves through cancelling to cancelled.
curl --request DELETE \
--url https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/projects/{projectId}/tests/{testId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"branchName": "<string>",
"testId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"codeObjectId": "<string>",
"evaluationRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"observation": 123,
"unit": "<string>",
"verdict": {
"name": "<string>",
"score": 123,
"criteriaTarget": "<string>"
},
"evidence": {},
"failure": {
"code": "EVALUATION_SCOPE_MISSING",
"message": "<string>",
"infrastructure": true,
"details": {}
},
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"branchName": "<string>",
"testId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"codeObjectId": "<string>",
"evaluationRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"observation": 123,
"unit": "<string>",
"verdict": {
"name": "<string>",
"score": 123,
"criteriaTarget": "<string>"
},
"evidence": {},
"failure": {
"code": "EVALUATION_SCOPE_MISSING",
"message": "<string>",
"infrastructure": true,
"details": {}
},
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Personal access token. The scopes granted at issuance determine both which
operations the key may call and the ceiling on the resource permissions it
can exercise. Each scope family is a ladder: projects:manage implies
projects:write and projects:read; cards:manage implies cards:write
and cards:read; and teams:manage implies teams:write and teams:read.
These are named API capability bundles, not blanket domain roles:
manage exposes only the permissions enumerated for that scope and never
bypasses the acting user's current role-based access.
Path Parameters
Project id. May be compound in the form {projectId}--{branchName}.
1Id of the authored Test object in the source project.
1Evaluation-run or Test-run id returned by its create operation.
Response
Terminal state after cancellation or an already-terminal run.
completed, failed, cancelled, and timed_out are terminal.
failed means the Code execution or evaluation infrastructure failed;
a valid low observation still completes and may resolve to a failing
Test verdict.
queued, starting, running, evaluating, cancelling, completed, failed, cancelled, timed_out Finite numeric observation committed to the Test's Results Value.
Fixture-defined structured evidence. SYSTEM quality fixtures include transcript, final-tree, usage, and rubric summaries; callers must tolerate additional fixture-specific fields.
Hide child attributes
Hide child attributes
EVALUATION_SCOPE_MISSING, EVALUATION_AGENT_FAILED, EVALUATION_TIMEOUT, EVALUATION_EVIDENCE_MISSING, EVALUATION_OBSERVATION_INVALID, EVALUATION_CLEANUP_FAILED, CODE_EXECUTION_FAILED, TEST_CANCELLED, TEST_RUN_FAILED, TEST_RUN_TIMED_OUT True when no quality verdict may be inferred from this failure.