Check a permission
POST {{baseUrl}}/relation-tuples/check/openapi?max-depth=<long>
To learn how relationship tuples and the check works, head over to the documentation.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
max-depth | string |
Request Body
{"namespace"=>"<string>", "object"=>"<string>", "relation"=>"<string>", "subject_id"=>"<string>", "subject_set"=>{"namespace"=>"<string>", "object"=>"<string>", "relation"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"allowed":"\u003cboolean\u003e"}