You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have requested to add a policy, but the response code is 409.
I think the error statement is just a misprint, but I'd like to know what is wrong in this policy.
policy
{
"id": "no-name",
"content": "permit(principal is User, action == Action::"access", resource is Photo) when { resource.type == "Public" };"
}
response
{
"reason": "The requested resource already exists",
"description": "policy with the given id(no-name) already exists",
"code": 409
}
The text was updated successfully, but these errors were encountered:
It appears like your agent already has a policy with the ID no-name.
Can you attach the response of GET /policies ?
Anyway I'm guessing you are using the POST /policies API, if you want to upsert a policy ( by id ) you can use the PUT /policies/{id}
@omer9564, hello.
It's not the problem for duplicate, of course.
There is no policy named 'no-name'.
Here is the result of Get /policeis.
And let me show you an example that clearly shows that "is" is the problem.
"is" NOT used
"is" used
Finally, the below is the result using POST /policies.
There is another error. But I don't want to talk about it at this time.
Please check more about "is" problem.
Thank you.
Hello.
I have requested to add a policy, but the response code is 409.
I think the error statement is just a misprint, but I'd like to know what is wrong in this policy.
policy
{
"id": "no-name",
"content": "permit(principal is User, action == Action::"access", resource is Photo) when { resource.type == "Public" };"
}
response
{
"reason": "The requested resource already exists",
"description": "policy with the given id(no-name) already exists",
"code": 409
}
The text was updated successfully, but these errors were encountered: