---
title: "Link Patient Sessions"
method: POST
path: "/api/v2/ml-scribe/open-api/patient-profiles/{patient_profile_id}/sessions"
tags: ["Heidi API"]
---

# Link Patient Sessions

`POST /api/v2/ml-scribe/open-api/patient-profiles/{patient_profile_id}/sessions`

## Request

- Base URL: `https://au.api.heidihealth.com`
- URL: `https://au.api.heidihealth.com/api/v2/ml-scribe/open-api/patient-profiles/{patient_profile_id}/sessions`
- Auth: HTTP bearer

set linked sessions to patient profile

## Path parameters

- `patient_profile_id` string, required

## Request body

- OpenAPILinkPatientSessionsRequest
  - `session_ids` string[], required

## Response `200`

Successful Response

- OpenAPILinkPatientSessionsResponse
  - `data` MinimumSessionView[], required (unresolved $ref)

## Other responses

- `400`: Bad Request
- `422`: Validation Error

---

[API](https://skmtc.dev/heidihealth/apis/heidi-api-documentation.md) - [All operations](https://skmtc.dev/heidihealth/apis/heidi-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/heidihealth/apis/heidi-api-documentation/revisions/d764c8c0883f?raw)
