---
title: "Create a Relation Tuple"
method: PUT
path: "/relation-tuples"
tags: ["write"]
---

# Create a Relation Tuple

`PUT /relation-tuples`

Use this endpoint to create a relation tuple.

## Request body

- RelationQuery
  - `namespace` string, required — Namespace of the Relation Tuple
  - `object` string — Object of the Relation Tuple
  - `relation` string — Relation of the Relation Tuple
  - `subject_id` string — SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided.
  - `subject_set` SubjectSet
    - `namespace` string, required — Namespace of the Subject Set
    - `object` string, required — Object of the Subject Set
    - `relation` string, required — Relation of the Subject Set

## Response `201`

RelationQuery

- RelationQuery
  - `namespace` string, required — Namespace of the Relation Tuple
  - `object` string — Object of the Relation Tuple
  - `relation` string — Relation of the Relation Tuple
  - `subject_id` string — SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided.
  - `subject_set` SubjectSet
    - `namespace` string, required — Namespace of the Subject Set
    - `object` string, required — Object of the Subject Set
    - `relation` string, required — Relation of the Subject Set

## Other responses

- `400` — The standard error format
- `500` — The standard error format

## Changes

- **2021-10-07** `e90046dbd055` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ory/apis/ory-keto-api/changes/relation-tuples/put.md)

---

[API](https://skmtc.dev/ory/apis/ory-keto-api.md) · [All operations](https://skmtc.dev/ory/apis/ory-keto-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ory/ory-keto-api/revisions/e90046dbd055/schema)
