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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&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;}}