---
title: "Categorise an uploaded document"
method: PATCH
path: "/prior-authorities/{priorAuthorityId}/documents/{documentId}"
tags: ["Prior Authority"]
---

# Categorise an uploaded document

`PATCH /prior-authorities/{priorAuthorityId}/documents/{documentId}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/prior-authorities/{priorAuthorityId}/documents/{documentId}`
- Auth: none declared

Assigns a document type to a previously uploaded supporting document.

## Path parameters

- `priorAuthorityId` string, uuid, required
- `documentId` string, uuid, required

## Request body

- UpdatePriorAuthorityDocumentTypeRequest: Request body used to assign a category to a previously uploaded prior-authority document.
  - `documentType` 'GATEWAY_EVIDENCE' | 'MERITS_REPORT' | 'STATEMENT_OF_CASE' | 'COURT_APPLICATION' | 'COURT_ORDER' | 'EXPERT_REPORT' | 'COURT_APPLICATION_OR_ORDER' | 'PARENTAL_RESPONSIBILITY' | 'LOCAL_AUTHORITY_ASSESSMENT' | 'GROUNDS_OF_APPEAL' | 'COUNSEL_OPINION' | 'JUDGEMENT' | 'PLF_COURT_ORDER' | 'LETTER_OF_INSTRUCTION' | 'ESTIMATE_OF_COSTS' | 'ALTERNATIVE_QUOTE' | 'OTHER_PARTY_CERTIFICATE_REFERENCE' | 'OTHER_SUPPORTING_DOCUMENT' | 'PRIMARY_QUOTE' | 'ADDITIONAL_QUOTE', required: Type of document being categorised.

## Response `200`

Document category updated.

- PriorAuthorityDocumentTypeUpdateResponse: Confirmation returned after a document's category has been updated.
  - `documentId` string, uuid: Identifier of the document that was updated.
  - `updatedAt` string, date-time: Timestamp the category update was recorded by the Access Data Store.

## Other responses

- `400`: Invalid document type.
- `404`: Prior authority or document not found.

## Changes

- **2026-09-16** `c96fb373a2c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-laa-civil-manage-api/changes/prior-authorities/:priorAuthorityId/documents/:documentId/patch.md)

---

[API](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-laa-civil-manage-api.md) - [All operations](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-laa-civil-manage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-laa-civil-manage-api/revisions/fc3ff4e8c6f9?raw)
