Check a permission
GET/relation-tuples/check
To learn how relationship tuples and the check works, head over to the documentation.
SDK ReferenceTypeScript
checkPermissionOrError()| Parameters | Type | Required | Description |
|---|---|---|---|
| namespace | string | optional | Namespace of the Relationship |
| object | string | optional | Object of the Relationship |
| relation | string | optional | Relation of the Relationship |
| subjectId | string | optional | SubjectID of the Relationship |
| subjectSetNamespace | string | optional | Namespace of the Subject Set |
| subjectSetObject | string | optional | Object of the Subject Set |
| subjectSetRelation | string | optional | Relation of the Subject Set |
| maxDepth | number | optional |
| Variable | Type |
|---|---|
| data | CheckPermissionResult |