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

# GET /admin/medias/{id}/versions

`GET /admin/medias/{id}/versions`

## Request

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

Returns a representation of a media record and associated versions

## Path parameters

- `id` integer, required: med_id

## Response `200`

OK

- AdminVersionedMediaResponse
  - `media_object_id` string
  - `current_version` AdminMediaVersionResponse
    - `id` integer: med_id
    - `courthouse` AdminMediaCourthouseResponse
      - `id` integer
      - `display_name` string
    - `courtroom` AdminMediaCourtroomResponse
      - `id` integer
      - `name` string
    - `start_at` string, date-time
    - `end_at` string, date-time
    - `channel` integer: Channel number of the audio recording
    - `chronicle_id` string
    - `antecedent_id` string
    - `is_current` boolean
    - `created_at` string, date-time
  - `previous_versions` AdminMediaVersionResponse[]
    - `id` integer: med_id
    - `courthouse` AdminMediaCourthouseResponse
      - `id` integer
      - `display_name` string
    - `courtroom` AdminMediaCourtroomResponse
      - `id` integer
      - `name` string
    - `start_at` string, date-time
    - `end_at` string, date-time
    - `channel` integer: Channel number of the audio recording
    - `chronicle_id` string
    - `antecedent_id` string
    - `is_current` boolean
    - `created_at` string, date-time

## Other responses

- `401`: Unauthorised Error
- `403`: Forbidden Error
- `404`: Not Found Error

## Changes

- **2026-07-20** `f273786fb018`: 4 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 `404`
  - 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 `404`
- **2025-04-28** `d4cf7d652234`: 1 breaking
  - for the `path` request parameter `id`, the format changed from no format to `int64`
- **2025-03-05** `8e0916e2759e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hm-courts-and-tribunals-service/apis/modernised-darts/changes/admin/medias/:id/versions/get.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)
