Skip to main content
POST
Add datapoints to a dataset

Authorizations

Authorization
string
header
required

A fine-grained data plane API key (values begin with hh_fgdp_). Rooted at an organization, workspace, or project, it carries the permissions chosen when it was created, and only the operations whose paths begin with /v1/projects/{project_id}/ accept it. Create one in the HoneyHive app under the project's, workspace's, or organization's Settings → API Keys, on the Data Plane tab.

Path Parameters

project_id
string
required

The unique identifier of the project that owns the dataset

dataset_id
string
required

The unique identifier of the dataset to add datapoints to like 663876ec4611c47f4970f0c3

Body

application/json

Request body for POST /datasets/{dataset_id}/datapoints

data
object[]
required

Array of datapoint data objects to add

Minimum array length: 1
mapping
object
required

Field mapping for inputs, ground truth, and history

Response

200 - application/json

Successful addition

Response for POST /datasets/{dataset_id}/datapoints

inserted
boolean
required
datapoint_ids
string[]
required
Minimum string length: 1