Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Import a list of global tags

Solved!
VickeyC
Level 3
Import a list of global tags

Can I upload a list of global tags using the Python API?  If so, how?   


Operating system used: RHEL 7.9

0 Kudos
1 Solution
AlexT
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()




View solution in original post

0 Kudos
2 Replies
AlexT
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()




0 Kudos
VickeyC
Level 3
Author

Thank you @AlexT --  Exactly what I was looking for!

0 Kudos