Import a list of global tags
VickeyC
Registered Posts: 27 ✭✭✭✭
Can I upload a list of global tags using the Python API? If so, how?
Operating system used: RHEL 7.9
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,212 Dataiker
Hi @VickeyC
,You can use https://doc.dataiku.com/dss/latest/python-api/client.html#dataikuapi.DSSClient.get_general_settings to interact with globalTagsCategories. Note you need Admin permissions for interacting with general_settings.
Here is a quick example:import dataiku client = dataiku.api_client() settings = client.get_general_settings() raw_settings = settings.get_raw().["globalTagsCategories"] #modify raw_settings as needed # raw_settings = ... settings.save()
Answers
-
Thank you @AlexT
-- Exactly what I was looking for!