---
title: "PATCH /admin/medias/{id}"
method: PATCH
path: "/admin/medias/{id}"
tags: ["Audio"]
---

# PATCH /admin/medias/{id}

`PATCH /admin/medias/{id}`

## Request

- Base URL: `http://localhost:4550`
- URL: `http://localhost:4550/admin/medias/{id}`
- Auth: none declared

Update a media record

## Path parameters

- `id` integer, required: med_id

## Request body

- object
  - `is_current` true, required

## Response `200`

Accepted

## Other responses

- `400`: Bad Request Error
- `401`: Unauthorised Error
- `403`: Forbidden Error
- `404`: Not Found Error
- `409`: Data conflicting
- `422`: Business Validation Error

## Changes

- **2026-07-20** `f273786fb018`: 20 info
  - added `#/components/schemas/problem` to the response body `allOf` list for the response status `403`
  - added `#/components/schemas/problem` to the response body `allOf` list for the response status `409`
  - removed `#/components/schemas/problem.yaml` from the response body `allOf` list for the response status `403`
  - removed `#/components/schemas/problem.yaml` from the response body `allOf` list for the response status `409`
  - …16 more
- **2025-04-28** `d4cf7d652234`: 1 breaking
  - for the `path` request parameter `id`, the format changed from no format to `int64`
- **2025-04-09** `6900b24c5e87`: 1 info
  - added the non-success response with the status `422`
- **2025-03-11** `bf933c7648d9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/changes/admin/medias/:id/patch.md)

---

[API](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts.md) - [All operations](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/llms.txt) - [OpenAPI document](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/revisions/f273786fb018?raw)
