POST /ingest-jobs/{job_id}/cancel
Cancel a queued import. A claimed one is a 409 naming its status.
RULE IJ-1 is that a crashed job is never auto-requeued, because re-embedding duplicates
rows. Cancelling a job the worker already claimed is the mirror image of that mistake:
the row would say finished while the loop is still committing items into it.
Name In Type Notes job_idpath string (uuid) required —
Status Description Body 200Successful Response IngestJobView422Validation Error HTTPValidationError
Only the success paths are declared
Any operation may also answer any status in the error catalogue , and
every failure body is the platform envelope — including the 422 this document types
as HTTPValidationError.
curl -X POST https://your-deployment.example.com/ingest-jobs/{job_id}/cancel \
-H " Authorization: Bearer $COBRE_TOKEN "
Field Type Notes idstring (uuid) required — kb_idstring (uuid) required — statusqueued | running | succeeded | failed | cancelledrequired — stageanalyzing | embedding | nulloptional — modeverbatim | analyzedrequired — source_formatcsv | markdown | items | document | urlrequired — source_filenamestring | null optional — source_urlstring | null optional — total_itemsinteger optional Default 0. processed_itemsinteger optional Default 0. created_itemsinteger optional Default 0. skippedIngestSkip[]optional — analyzer_run_idstring (uuid) | null optional — tokens_inputinteger optional Default 0. tokens_outputinteger optional Default 0. coststring optional Default "0". error_messagestring | null optional — started_atstring (date-time) | null optional — finished_atstring (date-time) | null optional — created_atstring (date-time) required —