---
title: "Update relationship"
method: PATCH
path: "/relationships/{id}"
tags: ["Relationship"]
---

# Update relationship

`PATCH /relationships/{id}`

## Path parameters

- `id` string, int64, required

## Request body

- object
  - `patient_id` string, int64 — patient id
  - `related_patient_id` string, int64 — patient id
  - `relation` 10 | 20 | 30 | 40 | 50 | 60 | 70 — | Enum Value | Description | |---|---| |10|Parent| |20|Child| |30|Sibling| |40|Spouse| |50|Partner| |60|Relative| |70|Other|

## Response `200`

Resource was updated

- Relationship
  - `archived_at` string, date-time, nullable
  - `created_at` string, date-time
  - `id` string, int64
  - `links` object
    - `self` string, uri
  - `patient` object
    - `links` object
      - `self` string, uri
  - `related_patient` object
    - `links` object
      - `self` string, uri
  - `relation` 10 | 20 | 30 | 40 | 50 | 60 | 70, nullable
  - `relation_description` 'Parent' | 'Child' | 'Sibling' | 'Spouse' | 'Partner' | 'Relative' | 'Other', nullable
  - `updated_at` string, date-time

## Other responses

- `422` — Resource could not be saved due to validation errors

---

[API](https://skmtc.net/cliniko/apis/cliniko-api.md) · [All operations](https://skmtc.net/cliniko/apis/cliniko-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cliniko/cliniko-api/versions/c129a555ff44/schema)
