# DOCUMENT_STATUS_INVALID

Canonical page: https://docs.ovok.com/errors/document-status-invalid

**HTTP 422.** Problem type: [`https://docs.ovok.com/errors/document-status-invalid`](https://docs.ovok.com/errors/document-status-invalid).

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

`POST /fhir/R4/DocumentReference/<id>/$update-metadata` was not sent as ISiK defines it. The body is not a Parameters resource, holds a parameter other than `docStatus` or none, or `docStatus` is not a composition status. Nothing was written.

## Troubleshooting [#troubleshooting]

1. Send `{ "resourceType": "Parameters", "parameter": [{ "name": "docStatus", "valueCode": "final" }] }`.
2. Use one of `preliminary`, `final`, `amended` and `entered-in-error` as `valueCode`.
3. Change any other metadata by sending a new document that `replaces` this one.

## Retry safely [#retry-safely]

Safe to send again once the body is corrected; a refused update writes nothing.

## 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.
