POST
/
datasets
import honeyhive
from honeyhive.models import components

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


res = s.datasets.create_dataset(request=components.CreateDatasetRequest(
    project='New Project',
    name='test-dataset',
    description='A test dataset',
    type=components.CreateDatasetRequestType.EVALUATION,
    datapoints=[
        '66369748b5773befbdc661e2',
    ],
    linked_evals=[
        '<value>',
    ],
    saved=False,
    pipeline_type=components.CreateDatasetRequestPipelineType.EVENT,
    metadata={
        'source': 'dev',
    },
))

if res.object is not None:
    # handle response
    pass
{
  "inserted": true,
  "result": {
    "insertedId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

Successful creation

The response is of type object.