Repository navigation
Add task type DataCollectionV2 - #108
Merged
Merged
Conversation
Adds TaskType.DataCollectionV2 so client.create_task() can create datacollectionv2 tasks through the existing POST /v1/task/datacollectionv2 endpoint, and documents the payload shape in the README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The API no longer serves POST /v1/task/documenttranscription (the task type was removed server-side in July 2026), so these tests 404 on every CI run. TaskType.DocumentTranscription is left in place; removing it would be a breaking change for a separate PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
GabeBlanchard
requested review from
GianlucaBobbioScale and
shreyas-scale
and removed request for
shreyas-scale
October 28, 2026 15:25
GianlucaBobbioScale
approved these changes
Oct 28, 2026
shreyasatscale
self-requested a review
October 29, 2026 15:13
shreyasatscale
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
Description
Adds
TaskType.DataCollectionV2("datacollectionv2") soclient.create_task()can create data collection V2 tasks.The server already exposes
POST /v1/task/datacollectionv2. Until now SDK users had to call it through the low-levelclient.api.post_request("task/datacollectionv2", ...). With this change,client.create_task(TaskType.DataCollectionV2, **payload)sends the identical request and returns aTask.The README gets a DataCollectionV2 example (a
video-annotationpayload) that covers three server behaviors:upload_typedetermines the payload's schema, and fields outside it are rejected (e.g.batch).(project, metadata.id), so resending ametadata.idreturns the existing task.status == "error".No server changes are needed.
How did you test your code?
tests/for the newly implemented methodstests/to cover changes made to existing methodsNo new tests. The suite runs against the live API, and the earlier task-type additions (#104, #105) didn't add tests either. I checked that
TaskType("datacollectionv2")resolves toTaskType.DataCollectionV2. The equivalentpost_requestcall is already used to create DCv2 tasks.Checklist
_version.py(unless this PR only updates the documentation).🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds
TaskType.DataCollectionV2and a README example.client.create_task().No new actionable issues were found.
Reviews (3) · Last reviewed commit: "Bump version to 2.19.0" · Reviewed by Greptile