complete_upload
Finalizes an upload after a successful start_upload and HTTP PUT. Creates a new dataset version or dataset based on provided details.
Instructions
Finalize an upload after start_upload + curl. upload_request_id: opaque id returned by start_upload. dataset_id: optional target dataset id for creating a new version. If the dataset already exists, a new version is created automatically. dataset_type: train | test | validation (default train).
The gateway PUT from start_upload must return HTTP 2xx before you call this tool; otherwise the API responds with 400 (upload session not UPLOADED yet).
Returns the dataset record with id, name, and the new datasetVersion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| name | Yes | ||
| upload_request_id | Yes | ||
| description | No | ||
| dataset_type | No | train | |
| dataset_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||