VocalDocscontracts 1.65.0

Delete a scenario

DELETE /v1/prompt-eval-suites/{prompt_eval_suite_id}/scenarios/{scenario_id}

PropertyValue
Operationdelete_prompt_eval_scenario
GroupPrompt evaluations and experiments
Scopeprompts:write
Route classcontrol
IdempotencyNo Idempotency-Key
AuditAudited prompts.prompt_eval_scenario.delete (mutation)
Released in1.55.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Deletes a scenario at the revision If-Match names (1.55.0); the verdicts of earlier runs keep its id.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the prompts:write scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl -X DELETE "$VOCAL_API/v1/prompt-eval-suites/pes_.../scenarios/pesc_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY" \
  -H 'If-Match: "1"'

Parameters

NameInTypeRequiredDescription
prompt_eval_suite_idpathPromptEvalSuiteIdyesThe id of an evaluation suite: pes_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
scenario_idpathPromptEvalScenarioIdyesThe id of a scenario of an evaluation suite: pesc_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
if-matchheaderstringyesThe revision the change was made against, quoted as the ETag returns it, or * to overwrite.

Responses

StatusContent typeShapeError codes
200application/jsonPromptEvalScenarioDeletion
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden, org_suspended
404application/jsonErrorEnvelopenot_found
409application/jsonErrorEnvelopeprompt_eval_suite_archived
412application/jsonErrorEnveloperevision_mismatch
428application/jsonErrorEnvelopeprecondition_required
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is PromptEvalScenarioDeletion.

FieldTypeRequiredDescription
deleted_atTimestampyes
idPromptEvalScenarioIdyes
object"prompt_eval_scenario_deletion"yes