---
title: "Update Relationship"
method: PATCH
path: "/api/v1/ontology/relationships/{relationship_id}"
tags: ["ontology-relationships"]
---

# Update Relationship

`PATCH /api/v1/ontology/relationships/{relationship_id}`

Update relationship name, type, or description. Requires admin/owner.

## Path parameters

- `relationship_id` string, uuid, required

## Request body

- RelationshipUpdate — Input for PATCH /ontology/relationships/{id}.
  - `name` string, nullable
  - `relationship_type` string, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- RelationshipRead — Full relationship for GET endpoints.
  - `id` string, uuid, required
  - `company_id` string, uuid, required
  - `from_entity_id` string, uuid, required
  - `from_entity_name` string
  - `to_entity_id` string, uuid, required
  - `to_entity_name` string
  - `name` string, required
  - `relationship_type` string, required
  - `cardinality` string, required
  - `from_key` string, required
  - `to_key` string, required
  - `description` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/netter/apis/dmi-backend.md) · [All operations](https://skmtc.net/netter/apis/dmi-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netter/dmi-backend/revisions/f2927c00c4d9/schema)
