v1
protected
access-control

Create Relationship

Changed on

Grant a resource-ownership relation via the configured graph backend.

Idempotent: a grant the subject already holds (also under a legacy alias such as viewers for reader) succeeds without changing the graph, and is not audited again.

post/v1/workspaces/{workspace}/access-control/relationships

Request

Path parameters

workspacestring required

Slug of the workspace the request acts in

Request body

namespacestring required
objectstring required
relationstring required
subject_idstring nullable

Response

Successful Response

object required

Changes