Complete upload
complete_uploadFinalize a validated upload as a dataset after its session reaches READY, creating a new dataset or adding a new version to an existing one.
Instructions
Register a validated upload as a dataset (the last step of every channel).
upload_request_id: opaque id returned by start_upload.
dataset_id: omit it to create a new dataset named name. Pass an
existing dataset's id (the one given to start_upload) to add a new
version to that dataset; name is then still required but ignored,
and the dataset keeps its current name.
dataset_type: train | test | validation (default train). You produce these
files by splitting the prepared data yourself: train is what the model
learns from, test is the holdout you score afterwards with
run_batch_prediction, and validation is an optional extra holdout.
EasyDeploy stores the type as a label and never splits for you.
The upload session must be in status READY — not UPLOADED. READY means
the validator has accepted and promoted the bytes. RECEIVING / UPLOADED /
VALIDATING (still in flight), REJECTED (failed validation) and
EXPIRED (needs a new start_upload) return 400 naming the current
state and what to do. Call get_upload_status first and wait for READY
instead of calling this tool on a guess.
Retrying is safe: if the session is already CONSUMED (an earlier call
succeeded), the API returns the existing dataset version instead of an error.
A 409 means another complete_upload for the same session is still in
progress — wait a few seconds and call again.
A file the user uploaded through the web model builder is already a dataset —
resolve it with list_datasets rather than calling this.
Returns dataset (id, name, ui_url) and datasetVersion once, at the
top level, with its ui_url and columnNames as a list.
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 |
|---|---|---|---|
| name | Yes | ||
| dataset_id | No | ||
| project_id | Yes | ||
| description | No | ||
| dataset_type | No | train | |
| upload_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||