Skip to main content

Cancel processing of the pending version

POST 

/v1/knowledge_bases/:kb_id/documents/:document_id/cancel

Allowed in uploaded, validating, queued, processing and awaiting_budget (for the first version or a pending replacement). Embedding tokens already produced are billed; unstarted work is free. A document with no ready version ends cancelled; with a ready version the pending replacement is dropped and the document stays ready.

Access: API key scope knowledge:write; portal users: organization admins and owners; the knowledge base in the path must be on the key's access list.

Request​

Responses​

Cancellation accepted.