Skip to main content

Create relation

Create relation

Request Body required
    object objectnamespace:uuid
    subject subjectnamespace:uuid
    relation string
    subject_sub_relation string
Responses

A successful response.


Schema
    relation object
    id string
    created_at date-time

    The time the relation was created.

    updated_at date-time

    The time the relation was last updated.

    subject_sub_relation string
    relation string
    object objectnamespace:id
    subject subjectnamespace:id
POST /v1beta1/relations

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
Body required
{
"object": "string",
"subject": "string",
"relation": "string",
"subject_sub_relation": "string"
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/relations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"object": "string",
"subject": "string",
"relation": "string",
"subject_sub_relation": "string"
}'