Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lumina-ai-inc/chunkr/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
This endpoint requires API key authentication via theAuthorization header:
Path Parameters
The unique identifier of the task to update
Requirements
- Task must have status
SucceededorFailed - New configuration must be different from the current configuration
- Task must not be expired
Request Body
The request body is JSON with optional configuration fields. Any fields not provided will retain their values from the original task configuration.Controls the Optical Character Recognition (OCR) strategy:
All: Processes all pages with OCRAuto: Selectively applies OCR only to pages with missing or low-quality text
Controls the segmentation strategy:
LayoutAnalysis: Analyzes pages for layout elementsPage: Treats each page as a single segment
Whether to use high-resolution images for cropping and post-processing
The number of seconds until task is deleted
Controls how errors are handled:
Fail: Stops processing on any errorContinue: Attempts to continue despite non-critical errors
Controls the settings for chunking and post-processing.
Controls the post-processing of each segment type. Each segment type can be configured independently.
Controls the LLM used for the task.
Response
The response is identical to the Create Task response, with the task inStarting or Processing state.
The same task ID (tasks are updated in place)
Will typically be
Starting or Processing after updateOriginal creation timestamp (unchanged)
New start timestamp for the reprocessing
Will be null while reprocessing
Updated configuration with new settings merged with existing ones
Status message about the update
Status Codes
- 200: Task updated and reprocessing started successfully
- 400: Bad request (task cannot be updated, invalid configuration, task in wrong state)
- 404: Task not found
- 429: Usage limit exceeded
- 500: Internal server error
Examples
Behavior Notes
- Partial Updates: Only specify the fields you want to change. All other configuration values will be preserved from the original task.
-
Status Requirements: The task must be in
SucceededorFailedstate. Tasks that areStarting,Processing, orCancelledcannot be updated. - Reprocessing: The update triggers a complete reprocessing of the document with the new configuration. The original input file is reused.
- Same Task ID: The task keeps the same ID - it’s updated in place rather than creating a new task.
- Configuration Validation: If the LLM processing configuration is outdated or invalid, you’ll receive an error asking you to update it.
- Cost Implications: Updating a task counts toward your usage limits as it reprocesses the entire document.
Common Error Messages
"Task not found"- Task ID doesn’t exist or has expired"Task cannot be updated"- Task is not inSucceededorFailedstate"Usage limit exceeded"- Your account has reached its processing limit"The LLM processing configuration is probably outdated"- LLM configuration needs updating