Hi have submitted the payload for setProject ple...
# ory-network
s
Hi have submitted the payload for setProject please kindly provide response ,is anything wrong in payload , My requirement is to insert namespaces (Keto relationships) but this api updating existing namespaces . { "cors_admin": { "enabled": true }, "cors_public": { "enabled": true }, "name": "ProjectName", "services": { "permission": { "config": { "namespaces": [ { "id":2, "name": "Center8", "description": "franchise center3 ....." } ] } } } } (Above is my payload )
m
Hello @shy-helicopter-91421 please refrain from spamming this channel, you are posting almost every day with the same questions. I dont think you can insert namespaces like you are trying to do. As you noted this API is overriding the existing OPL completely. Are you trying to create relationships/permissions? See this API https://www.ory.sh/docs/reference/api#tag/relationship/operation/createRelationship Have a look at this: https://www.ory.sh/docs/cli/ory-patch-permission-config What is it you are trying to achieve ultimately?
s
sorry for spamming will not do again ,i have urgent requirement to generate namespace for relationships dynamically .Currently unable to do that
What is it you are trying to achieve ultimately (I have created File system for different organization , i had made relationships for different organization by differentiating them by namespaces ) Now each time new Organiztion demand filesystem I have to add mannualy in Project configuration .
eg see below project
each Center represent one company ,organization
My friend you cannot create a relationship in ory keto until you predefined namespace .
@magnificent-energy-493 thanks a lot ory patch permission-config | Ory this is working