https://cerbos.dev logo
Title
a

ANILA SOMAN

12/08/2022, 12:21 PM
{
"policyKind": "resource",
"policies": [{
"apiVersion": "<http://api.cerbos.dev/v1|api.cerbos.dev/v1>",
"resourcePolicy": {
"version": "default",
"resource": "contact",
"scope": "airtel",
"rules": [{
"roles": "admin",
"actions": ["create", "update", "delete", "read", "list"],
"effect": "EFFECT_ALLOW"
}
]
}
}]
}
c

Charith (Cerbos)

12/08/2022, 12:28 PM
Hey, is this a custom request type handled by your app? The Cerbos Admin API request doesn't have a
policyKind
field https://docs.cerbos.dev/cerbos/latest/api/admin_api.html#_addupdate_policies
a

ANILA SOMAN

12/09/2022, 4:26 AM
Hi @Charith (Cerbos), we created this policy policyKind field is not mandatory i will remove that