Upload CSV
Add Datapoints from a CSV file to a Dataset.
This will create a new version of the Dataset with the Datapoints from the CSV file.
If either version_id
or environment
is provided, the new version will be based on the specified version,
with the Datapoints from the CSV file added to the existing Datapoints in the version.
If neither version_id
nor environment
is provided, the new version will be based on the version
of the Dataset that is deployed to the default Environment.
You can optionally provide a name and description for the new version using version_name
and version_description
parameters.
Path parameters
Unique identifier for the Dataset
Headers
Query parameters
ID of the specific Dataset version to base the created Version on.
Name of the Environment identifying a deployed Version to base the created Version on.
Request
A CSV file containing Datapoints to be added to the Dataset.
Name for the new Dataset version.
Description for the new Dataset version.
Response
Successful Response
Path of the Dataset, including the name, which is used as a unique identifier.
Unique identifier for the Dataset. Starts with ds_
.
Name of the Dataset, which is used as a unique identifier.
Unique identifier for the specific Dataset Version. If no query params provided, the default deployed Dataset Version is returned. Starts with dsv_
.
The number of Datapoints in this Dataset version.
ID of the directory that the file is in on Humanloop.
Description of the Dataset.
Long description of the file.
The list of environments the Dataset Version is deployed to.
The user who created the Dataset.
Unique name for the Dataset version. Version names must be unique for a given Dataset.
Description of the version, e.g., the changes made in this version.
The list of Datapoints in this Dataset version. Only provided if explicitly requested.
Additional fields to describe the Dataset. Helpful to separate Dataset versions from each other with details on how they were created or used.