---
title: "{{baseUrl}}/persons/:personId/chart/encounters/:encounterId/documents"
method: POST
path: "/persons/{personId}/chart/encounters/{encounterId}/documents"
tags: ["Clinical Notes"]
---

# {{baseUrl}}/persons/:personId/chart/encounters/:encounterId/documents

`POST /persons/{personId}/chart/encounters/{encounterId}/documents`

Adds a document for the specified person and encounter.

This POST route does not use a simple JSON request body - this route requires a multipart/form-data request structure (and a Content-Type header of multipart/form-data that also includes a boundary definition).
Comments (which each begin with //DELETE ME) have been inserted into the POST body in this documentation. Removing each of these comment lines will result in a valid request body schema.

When comments are removed and values are entered for each variable request element, this will result in a request body with the structure shown in the example below:

Example Request Header:

"Content-Type": "multipart/form data; boundary=threequarksformustermark"

Example Multipart Request Body:  

--thr33quarks4mustermark
Content-Disposition: form-data; name="request"
Content-Type: application/json
{
"documentType": "EHRImage",
"fileDescription": "Text Description of Document to Appear in UI"
}

--thr33quarks4mustermark
Content-Disposition: form-data; name="file"; filename="this-will-be-the-filename.PDF"
Content-Type: application/pdf

%PDF-1.7
%µµµµ
  //truncated for brevity;
%%EOF

--thr33quarks4mustermark--

## Path parameters

- `personId` string, required
- `encounterId` string, required

## Headers

- `Content-Type` 'application/json'
- `Accept` string, required

## Request body

- string

## Response `200`

OK

- object

---

[API](https://skmtc.net/nextgen/apis/enterprise-api-uscdi-routes.md) · [All operations](https://skmtc.net/nextgen/apis/enterprise-api-uscdi-routes/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nextgen/enterprise-api-uscdi-routes/revisions/191e69116448/schema)
