ApiAi generation
Cancel a generation job
Cancel a running generation job. Can only cancel jobs in PENDING, ANALYZING, or GENERATING status. Args: job_id: The generation job UUID. session: Database session. repo: Generation job repository. Returns: CancelJobResponse with updated status. Raises: HTTPException: 404 if not found, 409 if not cancellable.
curl -X POST "https://loading/api/v1/servers/generate/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"{
"job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
"status": "pending",
"message": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}