# PATIENT_ID_REQUIRED

Canonical page: https://docs.ovok.com/errors/patient-id-required

**HTTP 422.** Problem type: [`https://docs.ovok.com/errors/patient-id-required`](https://docs.ovok.com/errors/patient-id-required).

## What this means [#what-this-means]

A practitioner shared a record with a related person but did not say whose record it is. `POST /v1/invites/record-share` with `recipient: "related-person"` needs `patientId` when the caller is a practitioner. Nothing was written and no email went out.

## Troubleshooting [#troubleshooting]

1. Send the id of the patient whose readings the related person should see, as `patientId`.
2. Check that you may update that patient under your access policy. A patient you cannot read is refused with `404`, and one you may only read with `403`.

## Retry safely [#retry-safely]

Retry the same request with `patientId` set. Nothing was created, so the retry cannot send a second invite.

## If the problem persists [#if-the-problem-persists]

Share the HTTP status, problem `type`, request path, response timestamp and `traceId` with your administrator or support contact. Remove access tokens, provider secrets and patient data first. The [Error responses guide](/errors) explains the response fields, and the [machine-code registry](/errors/machine-codes) lists every endpoint-specific type.
