Skip to main content

addDatapoints

addDatapoints(request: AddDatapointsRequest): Promise<AddDatapointsResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Add datapoints to a dataset Add new datapoints to an existing dataset. Provide raw data objects and a field mapping that specifies which fields map to inputs, ground truth, and history.

create

create(request: CreateDatasetRequest): Promise<CreateDatasetResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Create a dataset Create a new dataset with an optional name, description, and initial set of datapoint IDs.

delete

delete(request: DeleteDatasetRequest): Promise<DeleteDatasetResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Delete a dataset Permanently delete a dataset by its unique identifier.

getVersion

getVersion(request: GetDatasetVersionRequest): Promise<GetDatasetVersionResponse>
Accepted keys: Data plane fine-grained API key Get a dataset version Get one version of a dataset, with the number of datapoints it added, edited, and removed.

list

list(request?: GetDatasetsRequest): Promise<GetDatasetsResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Get datasets Retrieve datasets, optionally filtered by dataset ID or name.

listVersionDatapoints

listVersionDatapoints(request: ListDatasetVersionDatapointsRequest): Promise<ListDatasetVersionDatapointsResponse>
Accepted keys: Data plane fine-grained API key List the datapoints of a dataset version Fetch a snapshot of a dataset’s datapoints at a given version, newest first by created_at. Each datapoint has the content it had at that version, even if it was edited later. Deleted datapoints are omitted from all versions, including versions that predate the deletion.

listVersions

listVersions(request: ListDatasetVersionsRequest): Promise<ListDatasetVersionsResponse>
Accepted keys: Data plane fine-grained API key List dataset versions List a dataset’s versions, newest first. Each write that changes which datapoints a dataset holds, or their content, records one version. Versions are numbered from 1, and each one counts the datapoints it added, edited, and removed. A dataset that has never held a datapoint has no versions.

removeDatapoint

removeDatapoint(request: RemoveDatapointRequest): Promise<RemoveDatapointResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Remove a datapoint from a dataset Remove a specific datapoint from a dataset. The datapoint itself is not deleted, only dereferenced from the dataset.

removeDatapoints

removeDatapoints(request: RemoveDatapointsRequest): Promise<RemoveDatapointsResponse>
Accepted keys: Data plane fine-grained API key Remove datapoints from a dataset Remove up to 1000 datapoints from a dataset in one request, recorded as one dataset version. The datapoints themselves are not deleted, only dereferenced from the dataset. An id the dataset does not hold is skipped, and a request that removes nothing records no version.

update

update(request: UpdateDatasetRequest): Promise<UpdateDatasetResponse>
Accepted keys: Data plane fine-grained API key with project_id; Classic API key without project_id (deprecated) Update a dataset Update a dataset’s name, description, or list of datapoint IDs.

updateVersion

updateVersion(request: UpdateDatasetVersionRequest): Promise<UpdateDatasetVersionResponse>
Accepted keys: Data plane fine-grained API key Update a dataset version Set or clear the label of one dataset version. The label is the only field a version allows changing. Changing it creates no dataset version.