---
title: "Update a relation"
method: PATCH
path: "/v1/cases/{caseId}/relations/{caseRelationId}"
tags: ["Cases"]
---

# Update a relation

`PATCH /v1/cases/{caseId}/relations/{caseRelationId}`

Update a relation properties.

---

#### See also  
Learn more about [Cases](./cases-guide)

## Path parameters

- `caseId` string, uuid, required
- `caseRelationId` string, uuid, required

## Request body

- CaseRelationUpdate
  - `voting_rights_percentage` number, float, nullable
  - `ownership_percentage` number, float, nullable
  - `roles` string[] — `legal_representative` `shareholder`
  - `position` string, nullable
  - `to_company_id` string, uuid

## Response `200`

**ℹ️ Click to see full payload**

- CaseRelation
  - `id` string, uuid, required
  - `from_company_id` string, uuid, nullable, required
  - `from_individual_id` string, uuid, nullable, required
  - `to_company_id` string, uuid, required
  - `voting_rights_percentage` number, float, nullable, required
  - `ownership_percentage` number, float, nullable, required
  - `roles` string[], required — `legal_representative` `shareholder`
  - `position` string, nullable, required
  - `created_at` string, date-time, required — Creation date Date time in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) (`yyyy-MM-ddTHH:mm:ss.S+X` eg `2023-01-31T13:30:00.000Z`)
  - `updated_at` string, date-time, required — Latest update date Date time in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) (`yyyy-MM-ddTHH:mm:ss.S+X` eg `2023-01-31T13:30:00.000Z`)

## Other responses

- `400` — The request is either malformed or contain invalid parameters. - Make sure the identifiers specified in the URL are valid UUIDs - Make sure the body payload matches the expected schema
- `404` — No case or relation can be found.

---

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