Query relationships
GET {{baseUrl}}/relation-tuples?page_token=<string>&page_size=<long>&namespace=<string>&object=<string>&relation=<string>&subject_id=<string>&subject_set.namespace=<string>&subject_set.object=<string>&subject_set.relation=<string>
Get all relationships that match the query. Only the namespace field is required.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page_token | string | ||
page_size | string | ||
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 |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"next_page_token":"\u003cstring\u003e","relation_tuples":[{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e","subject_id":"\u003cstring\u003e","subject_set":{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e"}},{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e","subject_id":"\u003cstring\u003e","subject_set":{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e"}}]}