Eval runs
Cancel an eval run
POST
Requests cooperative cancellation. Queued runs become cancelled immediately; running runs finish in-flight calls and skip remaining scenarios. Only queued or running runs are cancelable.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255Cancellation state after the request.
application/json- response
id*stringFormat
uuidstatus*EvalRunStatusValue in
"queued""running""done""failed""cancelled"completed*integerRange
0 <= valuetotal*integerRange
0 <= valuecancel_requested_at?|Format
date-timeended_at?|Format
date-timecurl -X POST 'https://api.kejue.co/v1/eval-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \ -H 'Idempotency-Key: string'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "queued", "completed": 0, "total": 0, "cancel_requested_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z"}