PUT
/
datasets
import honeyhive
from honeyhive.models import components

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


res = s.datasets.update_dataset(request=components.DatasetUpdate(
    dataset_id='663876ec4611c47f4970f0c3',
    name='new-dataset-name',
    description='An updated dataset description',
    datapoints=[
        '66369748b5773befbdc661e',
    ],
    linked_evals=[
        '66369748b5773befbdasdk1',
    ],
    metadata={
        'updated': True,
        'source': 'prod',
    },
))

if res is not None:
    # handle response
    pass

Authorizations

Authorization
string
header
required

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

Body

application/json
dataset_id
string
required

The unique identifier of the dataset being updated

name
string

Updated name for the dataset

description
string

Updated description for the dataset

datapoints
string[]

Updated list of datapoint ids for the dataset - note the full list is needed

linked_evals
string[]

Updated list of unique evaluation run ids to be associated with this dataset

metadata
object

Updated metadata to track for the dataset

Response

200

Successful update