---
title: "Update a judgment"
method: PUT
path: "/{judgmentUri}"
tags: ["Writing"]
---

# Update a judgment

`PUT /{judgmentUri}`

## Request

- Base URL: `https://api.caselaw.nationalarchives.gov.uk/v1`
- URL: `https://api.caselaw.nationalarchives.gov.uk/v1/{judgmentUri}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/the-national-archives/apis/case-law-privileged-api/docs/:judgmentUri/put.ts> (a function with typed inputs; its response is checked against the schema)

Write a complete new version of the document to the database, and release any client lock.

## Path parameters

- `judgmentUri` string, required

## Headers

- `If-Match` string, required

## Response `204`

The document was updated successfully and any client lock released

## Other responses

- `400`: The request was malformed, and the document was not modified

## Changes

- **2023-11-09** `78e91c464b05`: 1 info
  - removed the non-success response with the status `412`

[Operation history](https://skmtc.dev/the-national-archives/apis/case-law-privileged-api/changes/:judgmentUri/put.md)

---

[API](https://skmtc.dev/the-national-archives/apis/case-law-privileged-api.md) - [All operations](https://skmtc.dev/the-national-archives/apis/case-law-privileged-api/llms.txt) - [OpenAPI document](https://skmtc.dev/the-national-archives/apis/case-law-privileged-api/revisions/78e91c464b05?raw)
