Hi everybody, is the documentation under <https://www.ory.sh/docs/reference/api> still up to date fo...
i
Hi everybody, is the documentation under https://www.ory.sh/docs/reference/api still up to date for the Ory Network? Some endpoints don't seem to work, e.g. for
/projects
I'm getting a 404. Others seem to work fine.
m
Hi, thanks for the report! Something seems to be amiss with the
projects
API. The others work as documented. I will follow up on the projects API.
i
Thanks for the quick reply, alright. Can I ask a follow-up question? If I try to create a relation-tuple via PUT, I need to specify a namespace, but I get the message: "Unknown namespace with name xy". How do I create a namespace in the first place?
m
Hey, we are still working on more guides for Permissions, but you can find a quickstart here: https://www.ory.sh/docs/guides/permissions/overview#defining-namespaces This is how you define a namespace
Copy code
ory patch permission-config <your-project-id> \
  --add '/namespaces/-={"id": 0, "name": "resources"}' \
  --add '/namespaces/-={"id": 1, "name": "groups"}'
i
Awesome, thank you.