Skip to main content
POST
/
v1
/
datapoints
/
batch
Create multiple datapoints in batch
curl --request POST \
  --url https://api.honeyhive.ai/v1/datapoints/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "<string>"
  ],
  "mapping": {
    "inputs": [],
    "history": [],
    "ground_truth": []
  },
  "filters": {},
  "dateRange": {
    "$gte": "<string>",
    "$lte": "<string>"
  },
  "checkState": {},
  "selectAll": true,
  "dataset_id": "<string>"
}
'
{
  "inserted": true,
  "insertedIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
events
string[]
Minimum string length: 1
mapping
object
filters
object
dateRange
object
checkState
object
selectAll
boolean
dataset_id
string
Minimum string length: 1

Response

200 - application/json

Datapoints successfully created in batch

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