---
title: "Update Primary Patient"
method: PUT
path: "/comms/chat/{chat_id}/primary-patient/{patient_id}"
tags: ["provider", "comms"]
---

# Update Primary Patient

`PUT /comms/chat/{chat_id}/primary-patient/{patient_id}`

## Request

- Base URL: `https://docs.decodahealth.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.decodahealth.com/comms/chat/{chat_id}/primary-patient/{patient_id}`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/comms/chat/:chat_id/primary-patient/:patient_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the primary patient of a chat.

## Path parameters

- `chat_id` string, required
- `patient_id` string, required

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) - [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decodahealth/apis/decoda-api/revisions/4ab18c80f9e9?raw)
