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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful update
Was this page helpful?
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