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>" ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the dataset to add datapoints to like 663876ec4611c47f4970f0c3
663876ec4611c47f4970f0c3
Successful addition
The response is of type object.
object
Was this page helpful?