Data Operations
Updating Tasks
Learn how to update existing tasks in Chunkr AI
Chunkr AI allows you to update the configuration of existing tasks. You can update a task either by its ID or using a task object.
Updating by Task ID
Use the update()
method with a task ID when you have the ID stored:
Updating from TaskResponse Object
If you have a task object (from a previous get_task()
or create_task()
), you can update it directly:
Immediate vs. Waited Updates
Like task creation, you have two options for updates:
Wait for Processing
The standard update()
method waits for processing to complete:
Immediate Response
Use update_task()
for an immediate response without waiting:
Async Usage
For async applications, use await
with the update methods: