curl --request DELETE \
--url 'http://localhost:8000/api/v1/training/{job_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending",
"message": "Two-person tent, green — replacement for damaged pole set."
}
Cancel Training (v1)
Cancel a v1 training job.
DELETE
/
api
/
v1
/
training
/
{job_id}
curl --request DELETE \
--url 'http://localhost:8000/api/v1/training/{job_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending",
"message": "Two-person tent, green — replacement for damaged pole set."
}
Cancel a v1 training job.
Path parameters
string
required
Response
TrainingCancelResponseV1
string
required
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
401 | Authentication required |
422 | Validation Error |
429 | Rate limit exceeded |
curl --request DELETE \
--url 'http://localhost:8000/api/v1/training/{job_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "pending",
"message": "Two-person tent, green — replacement for damaged pole set."
}
Last modified on August 31, 2026