---
title: "Patch Multiple Relation Tuples"
method: PATCH
path: "/relation-tuples"
tags: ["write"]
---

# Patch Multiple Relation Tuples

`PATCH /relation-tuples`

Use this endpoint to patch one or more relation tuples.

## Request body

- PatchDelta[]
  - `action` '[[[[[[insert delete]]]]]]' — action
  - `relation_tuple` InternalRelationTuple
    - `namespace` string, required — Namespace of the Relation Tuple
    - `object` string, required — Object of the Relation Tuple
    - `relation` string, required — Relation of the Relation Tuple
    - `subject_id` string — SubjectID of the Relation Tuple Either SubjectSet or SubjectID are required.
    - `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 `204`

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.

## Other responses

- `400` — genericError
- `404` — genericError
- `500` — genericError

## Changes

- **2022-02-09** `a88adf308b2b` — 4 info
  - added optional request body
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `500`
- **2021-10-07** `e90046dbd055` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ory/apis/ory-keto-api/changes/relation-tuples/patch.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/a88adf308b2b/schema)
