V2
Classify
Cancel Classify Job
Changed onCancel a running classify job.
Stops processing and marks the job as CANCELLED. Returns the updated job. Jobs already in a terminal state (COMPLETED, FAILED, CANCELLED) cannot be cancelled.
post/api/v2/classify/{job_id}/cancel
Request
- Base URL: https://api.cloud.llamaindex.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.cloud.llamaindex.ai/api/v2/classify/{job_id}/cancel
- Auth: HTTP bearer
Path parameters
job_idstring required
Query parameters
project_idstring uuid nullable
organization_idstring uuid nullable
Cookies
sessionstring nullable
Response
Successful Response
Example response
{
"configuration": {
"rules": [
{
"type": "invoice",
"description": "contains invoice number, line items, and total amount"
}
],
"parsing_configuration": {
"lang": "en",
"target_pages": "1,3,5-7",
"max_pages": 10
}
},
"usage": {
"credits": 30,
"parse_credits": 3
}
}Changes
- breaking
the
///response property's maxLength was increased from500to2000for the response status - warning
added the new
CANCELLEDenum value to theresponse property for the response status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status
- breaking
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- warning