Repository navigation
REST API missing setter for namespaces? #3505
Replies: 1 comment 3 replies
|
Hi @thsan995-glitch, Namespaces in Tolgee are not standalone entities that you create independently — they are created implicitly when you assign a key to a namespace. So there's no dedicated "create namespace" endpoint, but here's how you can work with them via the REST API: Assigning a key to a namespace (creating the namespace if it doesn't exist): When creating or editing a key, you can set the
Setting Renaming an existing namespace:
Listing namespaces:
So to "add namespaces for categorization after the fact", you'd update your existing keys with the desired namespace using the edit endpoints above. You can also find the full API reference at https://tolgee.io/api — look under the "Keys" and "Namespaces" sections. Hope that helps! |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m running into an issue in my project where I would like to add namespaces for categorization after the fact. This is easily possible via the web UI, but I couldn’t find anything about it in the REST API.
Did I miss something?
It seems like there are only getters, but no setters to add or modify namespaces afterwards.
Or am I misunderstanding how this is supposed to work?
Thanks!
All reactions