Datasets

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.

post/datasets/{id}/datapoints/csv

Request

  • Base URL: https://api.humanloop.com/v5
  • URL: https://api.humanloop.com/v5/datasets/{id}/datapoints/csv
  • Auth: API key in header X-API-KEY

Path parameters

idstring required

Unique identifier for the Dataset

Query parameters

version_idstring

ID of the specific Dataset version to base the created Version on.

environmentstring

Name of the Environment identifying a deployed Version to base the created Version on.

Response

Successful Response

pathstring required

Path of the Dataset, including the name, which is used as a unique identifier.

idstring required

Unique identifier for the Dataset. Starts with ds_.

directory_idstring

ID of the directory that the file is in on Humanloop.

namestring required

Name of the Dataset, which is used as a unique identifier.

descriptionstring

Description of the Dataset.

schemaobject

The JSON schema for the File.

readmestring

Long description of the file.

tagsstring[]

List of tags associated with the file.

version_idstring required

Unique identifier for the specific Dataset Version. If no query params provided, the default deployed Dataset Version is returned. Starts with dsv_.

type'dataset'
created_atstring date-time required
updated_atstring date-time required
created_byunknown
last_used_atstring date-time required
version_namestring

Unique name for the Dataset version. Version names must be unique for a given Dataset.

version_descriptionstring

Description of the version, e.g., the changes made in this version.

datapoints_countinteger required

The number of Datapoints in this Dataset version.

attributesobject

Additional fields to describe the Dataset. Helpful to separate Dataset versions from each other with details on how they were created or used.

Changes

No recorded changes to this operation across all 1 revision of this API.