Skip to Content
Peretyn
Reference

Return the proof tree for a relation on an object.

POST
/v1/expand

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
tuple_key*
contextual_tuples?

Response Body

Proof tree.

application/json
  1. response
tree?
Example Request
curl -X POST 'http://localhost:8080/v1/expand' \  -H 'Content-Type: application/json' \  -d '{  "tuple_key": {    "relation": "string",    "object": "string"  }}'
Example Response
{  "tree": {    "root": {      "name": "string",      "union": {        "nodes": [          {}        ]      },      "intersection": {        "nodes": [          {}        ]      },      "difference": {        "base": {},        "subtract": {}      },      "leaf": {        "users": {          "users": [            "string"          ]        },        "computed": {          "userset": "string"        },        "tupleToUserset": {          "tupleset": "string",          "computed": [            {              "userset": "string"            }          ]        }      }    }  }}