---
title: "Update customer relationship"
method: PATCH
path: "/v2/customers/{id}/relationships/{relationshipId}"
tags: ["Customers.Relationships"]
---

# Update customer relationship

`PATCH /v2/customers/{id}/relationships/{relationshipId}`

## Request

- Base URL: `https://api.carecycle.ai`
- URL: `https://api.carecycle.ai/v2/customers/{id}/relationships/{relationshipId}`
- Auth: API key in header `x-api-key`

Change how two linked customers are related

## Path parameters

- `id` string, uuid, required: Customer ID
- `relationshipId` string, uuid, required: Relationship ID

## Request body

- PatchV2CustomersIdRelationshipsRelationshipIdRequestBody
  - `relationshipType` 'spouse' | 'child' | 'parent' | 'sibling' | 'power_of_attorney' | 'other', required: What the related customer is to the customer in the path, for example spouse or child

## Response `200`

PATCH /v2/customers/:id/relationships/:relationshipId Positive response

- PatchV2CustomersIdRelationshipsRelationshipIdPositiveResponse
  - `id` string, uuid, required
  - `customerId` string, uuid, required: The customer the link was added from
  - `relatedCustomerId` string, uuid, required: The customer who is the other customer's relationshipType
  - `relationshipType` 'spouse' | 'child' | 'parent' | 'sibling' | 'power_of_attorney' | 'other', required: What the related customer is to the customer in the path, for example spouse or child
  - `createdAt` string, date-time, required: Relationship creation time. ISO 8601 timestamp
  - `updatedAt` string, date-time, required: Relationship last update time. ISO 8601 timestamp

## Other responses

- `400`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 400
- `401`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 401
- `403`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 403
- `404`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 404
- `409`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 409
- `422`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 422
- `429`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 429
- `500`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 500
- `502`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 502
- `503`: PATCH /v2/customers/:id/relationships/:relationshipId Negative response 503

---

[API](https://skmtc.dev/carecycle/apis/carecycle-public-api.md) - [All operations](https://skmtc.dev/carecycle/apis/carecycle-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carecycle/apis/carecycle-public-api/revisions/db390c743c36?raw)
