Can you set a darktable tag to be private or category via the lua api?

I’ve started a lua script to implement some ideas I have about how tagging should work. As in just started. Been at it a couple hours at most.

Anyway, I see that you can create a tag via the darktable.tags.* methods. But I don’t see anything in the docs for those methods that seems to map to the “private” and “category” checkboxes in dt’s edit tag dialog.

Is there another way to do it? Specifically I am creating some new hierarchical tags and I want a lot of the parent tags to be marked as private.

Thanks in advance!

darktable 4.3 (current development) supports reading synonyms and tags, but not setting them from the API. Create an issue (feature request) to have them added