Create or update dataset version
create_dataset_versionRegister an S3 file as a raw, QA-cleaned, or training dataset version, or update an existing version's QA status. Tracks dataset upload and QA state.
Instructions
Create or update a dataset version.
Create (register an S3 file as a new version):
Required: version_type (raw | qa_cleaned | training), file_url,
qa_metadata (freeform JSON with QA results). file_url accepts either
the file's s3:// URL (s3://{bucket}/users/{userId}/...) or its bare S3
key starting with users/{userId}/ — the s3Key field that
complete_upload returns as datasetVersion.s3Key and
get_dataset_version returns as s3Key. Any other form (an https URL,
a key with another prefix) is refused before calling the API. The file must
be under your own storage prefix users/{userId}/; the API rejects any
other location with 400.
Update (change qa_status on an existing version):
Required: version_id, qa_status (pending | in_progress | ready | blocked).
qa_status is informational and does not gate anything. version_type
matters in one case: submit_training_job with an explicit
dataset_version_id rejects a raw version. Omit dataset_version_id
to train on the model version's own dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | ||
| qa_status | No | ||
| dataset_id | Yes | ||
| project_id | Yes | ||
| version_id | No | ||
| qa_metadata | No | ||
| version_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||