Create a Relationship
PUT {{baseUrl}}/admin/relation-tuples
Use this endpoint to create a relationship.
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: Created
{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e","subject_id":"\u003cstring\u003e","subject_set":{"namespace":"\u003cstring\u003e","object":"\u003cstring\u003e","relation":"\u003cstring\u003e"}}