Skip to main content

create

create(request: CreateDatapointRequest): Promise<CreateDatapointResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Create a new datapoint Create a single datapoint with inputs, history, ground truth, and metadata. The linked_datasets array accepts at most one dataset ID. Requests with more than one entry return 400. A request with a non-empty linked_datasets also requires the project.dataset.post permission.

createBatch

createBatch(request: BatchCreateDatapointsRequest): Promise<BatchCreateDatapointsResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Create multiple datapoints in batch Create multiple datapoints from events using field mappings and optional filters. A data plane API key needs both project.datapoint.post and project.event.get for the project, and also project.dataset.post when the body names a dataset_id.

delete

delete(request: DeleteDatapointRequest): Promise<DeleteDatapointResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Delete a specific datapoint Permanently delete a datapoint by its unique identifier, and remove it from every dataset that holds it. Answers 404 when the project holds no such datapoint. Requires only the project.datapoint.delete permission.

get

get(request: GetDatapointRequest): Promise<GetDatapointResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Retrieve a specific datapoint Get a single datapoint by its unique identifier.

list

list(request?: GetDatapointsRequest): Promise<GetDatapointsResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Retrieve a list of datapoints Retrieve datapoints, optionally filtered by a list of datapoint IDs or dataset name.

update

update(request: UpdateDatapointRequest): Promise<UpdateDatapointResponse>
Accepted keys: Data plane fine-grained API key with project_id; Project API key without project_id (deprecated) Update a specific datapoint Update fields on an existing datapoint. Only the provided fields are modified. A request that includes linked_datasets also requires the project.dataset.post and project.dataset.delete permissions.