POST
/
datasets
/
{dataset_id}
/
datapoints
import honeyhive
from honeyhive.models import operations

s = honeyhive.HoneyHive(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.datasets.add_datapoints(dataset_id='<value>', request_body=operations.AddDatapointsRequestBody(
    project='<value>',
    data=[
        {
            'key': '<value>',
        },
    ],
    mapping=operations.Mapping(
        inputs=[
            '<value>',
        ],
        ground_truth=[
            '<value>',
        ],
        history=[
            '<value>',
        ],
    ),
))

if res.object is not None:
    # handle response
    pass
{
  "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

Response

200 - application/json

Successful addition

The response is of type object.