---
title: "Rerun Training Sample"
method: POST
path: "/training/samples/{sample_id}/rerun"
tags: ["training"]
---

# Rerun Training Sample

`POST /training/samples/{sample_id}/rerun`

## Request

- Base URL: `https://api.verdun.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.verdun.ai/training/samples/{sample_id}/rerun`
- Auth: HTTP bearer

Synchronous replay through ii (10-60s). The response is the persisted
rerun row — status 'failed' rows come back 200 with the error inline so
the network prerequisite (api-backend -> ii security group) degrades
visibly, not silently.

## Path parameters

- `sample_id` string, required

## Request body

- CreateTrainingRerunRequest
  - `prompt_profile` 'production' | 'demo', required: Which prompt to replay against: 'production' is the live prompt; 'demo' is the SSM-backed testing-ground prompt (iterable without a redeploy) — the selector makes re-runs a prompt-A/B surface

## Response `200`

Successful Response

- TrainingRerunModel
  - `id` string, uuid, required: UUID of the rerun row
  - `sample_id` string, uuid, required: Training sample this rerun replayed
  - `created_at` string, date-time, required: When the rerun was executed
  - `requested_by` string, uuid, nullable: Owner who requested the rerun
  - `prompt_profile` string, required: Prompt profile the clip was replayed against
  - `status` string, required: Whether the AI pipeline returned a result; failures are persisted too
  - `error` string, nullable: Failure detail when status is 'failed'
  - `rerun_incident_type` string, nullable: Incident type from the rerun result
  - `rerun_severity` string, nullable: Severity from the rerun result
  - `rerun_confidence_band` string, nullable: Confidence band from the rerun result
  - `rerun_recommended_action` string, nullable: Operator-aligned recommendation from the rerun result
  - `rerun_rationale` string, nullable: Model rationale from the rerun result
  - `llm_provider` string, nullable: Provider that served the rerun
  - `llm_model` string, nullable: Model that served the rerun
  - `llm_prompt_version` string, nullable: Prompt version the rerun ran under
  - `pipeline_version` string, nullable: Pipeline version the rerun ran under
  - `latency_ms` integer, nullable: Wall-clock rerun latency in milliseconds
  - `cost_usd` string, nullable: Inference cost reported by the pipeline
  - `matches_original` boolean, nullable: Rerun recommendation vs the sample's original AI recommendation; null when either side carries none
  - `matches_operator` boolean, nullable: Rerun recommendation vs the human's crosswalked expected action; null when either side carries none

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/verdun/apis/verdun-api.md) - [All operations](https://skmtc.dev/verdun/apis/verdun-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verdun/apis/verdun-api/revisions/00252d8227c1?raw)
