---
title: "POST /api/documents"
method: POST
path: "/api/documents"
tags: ["Clinical"]
---

# POST /api/documents

`POST /api/documents`

Create documents

## Query parameters

- `since` string
- `patient` integer
- `doctor` integer

## Response `201`

Created

- ScannedClinicalDocument
  - `archived` boolean — `DELETE` operation will set this field to `true`
  - `patient` integer, required — ID of the patient the document concerns
  - `description` string, required
  - `doctor` integer, required — ID of the doctor who owns the document
  - `metatags` string — Array of tags represented as string. This should be quoted--e.g. `'["a", "b"]'`--since this endpoint requires `multipart/form-data` encoding
  - `updated_at` string
  - `date` string, required
  - `document` string, required — When creating, if you receive response as 201, but this field is `null`, please send a `GET` request with the created object's ID to retrieve the updated file URL
  - `id` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `500` — Internal Server Error

---

[API](https://skmtc.net/drchrono/apis/untitled-api.md) · [All operations](https://skmtc.net/drchrono/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/drchrono/untitled-api/versions/e595797fe800/schema)
