Expand a Relationship into permissions.

GET {{baseUrl}}/relation-tuples/expand?namespace=<string>&object=<string>&relation=<string>&max-depth=<long>

Use this endpoint to expand a relationship tuple into permissions.

Request Params

KeyDatatypeRequiredDescription
namespacestring(Required) Namespace of the Subject Set
objectstring(Required) Object of the Subject Set
relationstring(Required) Relation of the Subject Set
max-depthstring

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;type&quot;:&quot;leaf&quot;,&quot;children&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/expandedPermissionTree detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/expandedPermissionTree detected\u003e&quot;}],&quot;tuple&quot;:{&quot;namespace&quot;:&quot;\u003cstring\u003e&quot;,&quot;object&quot;:&quot;\u003cstring\u003e&quot;,&quot;relation&quot;:&quot;\u003cstring\u003e&quot;,&quot;subject_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;subject_set&quot;:{&quot;namespace&quot;:&quot;\u003cstring\u003e&quot;,&quot;object&quot;:&quot;\u003cstring\u003e&quot;,&quot;relation&quot;:&quot;\u003cstring\u003e&quot;}}}