Check a permission
GET {{baseUrl}}/relation-tuples/check/openapi?namespace=<string>&object=<string>&relation=<string>&subject_id=<string>&subject_set.namespace=<string>&subject_set.object=<string>&subject_set.relation=<string>&max-depth=<long>
To learn how relationship tuples and the check works, head over to the documentation.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
namespace | string | Namespace of the Relationship | |
object | string | Object of the Relationship | |
relation | string | Relation of the Relationship | |
subject_id | string | SubjectID of the Relationship | |
subject_set.namespace | string | Namespace of the Subject Set | |
subject_set.object | string | Object of the Subject Set | |
subject_set.relation | string | Relation of the Subject Set | |
max-depth | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"allowed":"\u003cboolean\u003e"}