relationship

Create a Relationship

Use this endpoint to create a relationship.

put/admin/relation-tuples

Request body

namespacestring

Namespace to query

objectstring

Object to query

relationstring

Relation to query

subject_idstring

SubjectID to query

Either SubjectSet or SubjectID can be provided.

Response

relationship

namespacestring required

Namespace of the Relation Tuple

objectstring required

Object of the Relation Tuple

relationstring required

Relation of the Relation Tuple

subject_idstring

SubjectID of the Relation Tuple

Either SubjectSet or SubjectID can be provided.

Changes

Changed in 3 of the 50 revisions of this API.169

  • 5f207fe3fcc068See the full diff
    • removed the optional property code from the response with the 400 status

      response-optional-property-removed

    • removed the optional property details from the response with the 400 status

      response-optional-property-removed

    • removed the optional property message from the response with the 400 status

      response-optional-property-removed

    • removed the optional property reason from the response with the 400 status

      response-optional-property-removed

    • removed the optional property request from the response with the 400 status

      response-optional-property-removed

    • removed the optional property status from the response with the 400 status

      response-optional-property-removed

    • api operation id createRelationTuple removed and replaced with createRelationship

      api-operation-id-removed

    • api tag relationship added

      api-tag-added

    • api tag write removed

      api-tag-removed

    • removed the non-success response with the status 500

      response-non-success-status-removed

    • the response property namespace became required for the status 201

      response-property-became-required

    • the response property object became required for the status 201

      response-property-became-required

    • the response property relation became required for the status 201

      response-property-became-required

    • added the required property error to the response with the 400 status

      response-required-property-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog