Skip to main content
POST
/
v1
/
datasets
/
{dataset_id}
/
datapoints
Add datapoints to a dataset
curl --request POST \
  --url https://api.honeyhive.ai/v1/datasets/{dataset_id}/datapoints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {}
  ],
  "mapping": {
    "inputs": [],
    "history": [],
    "ground_truth": []
  }
}
'
{
  "inserted": true,
  "datapoint_ids": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required

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

Body

application/json
data
object[]
required
Minimum array length: 1
mapping
object
required

Response

200 - application/json

Successful addition

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