Solved! Go to Solution.
Hi ZA,
Welcome to DataRobot Community!
Yes, it's possible to modify dataset name via Python API. Here's how:
dataset = dr.Dataset.get('your_dataset_id')
dataset.modify(name='A Better Name')
You can find other useful examples of our python client in the docs, e.g. python public api client
Best regards,
Vitalii
Stepping outside the Python client package seems worth while. I'll use the 'requests' package to pull more API functionality.
requests.patch('%s/datasets/%s/'%(endpoint, datasetID),\
headers={'Authorization': 'token %s'%os.environ['DATAROBOT_API_TOKEN']},\
files={'name': (None,'New Data Name')})
I'm able to update it using PATCH /api/v2/datasets/(datasetId)/; but it's not native to the python API package.
Hi ZA,
Welcome to DataRobot Community!
Yes, it's possible to modify dataset name via Python API. Here's how:
dataset = dr.Dataset.get('your_dataset_id')
dataset.modify(name='A Better Name')
You can find other useful examples of our python client in the docs, e.g. python public api client
Best regards,
Vitalii
Stepping outside the Python client package seems worth while. I'll use the 'requests' package to pull more API functionality.
requests.patch('%s/datasets/%s/'%(endpoint, datasetID),\
headers={'Authorization': 'token %s'%os.environ['DATAROBOT_API_TOKEN']},\
files={'name': (None,'New Data Name')})
Thanks Vitalii! That works perfectly.