---
title: "Upload a supporting document"
method: POST
path: "/prior-authorities/{priorAuthorityId}/documents"
tags: ["Prior Authority"]
---

# Upload a supporting document

`POST /prior-authorities/{priorAuthorityId}/documents`

Accepts a multipart/form-data file upload from the frontend and returns the uploaded file's metadata. The document is uploaded without a category; use the PATCH endpoint to assign one afterwards.

## Path parameters

- `priorAuthorityId` string, uuid, required

## Response `200`

File accepted.

## Other responses

- `400` — No file supplied or file is empty.
- `404` — Prior authority not found in the access data store.
- `409` — The access data store rejected the document as a conflict.
- `413` — File exceeds the configured maximum size.
- `415` — Unsupported file type.
- `502` — The access data store failed to store the document.

## Changes

- **2026-09-21** `5885d8e9baa9` — 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `502`
- **2026-09-16** `c96fb373a2c9` — 5 info
  - added the optional property `checksum` to the response with the `200` status
  - added the optional property `documentType` to the response with the `200` status
  - added the optional property `fileType` to the response with the `200` status
  - added the optional property `mediaType` to the response with the `200` status
  - …1 more
- **2026-09-11** `efed7defdc0c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ministryofjustice/apis/openapi-definition/changes/prior-authorities/:priorAuthorityId/documents/post.md)

---

[API](https://skmtc.dev/ministryofjustice/apis/openapi-definition.md) · [All operations](https://skmtc.dev/ministryofjustice/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc.dev/ministryofjustice/apis/openapi-definition/revisions/6f407b0dd45d?raw)
