---
title: "Returns a representation of the media table which match the supplied search criteria."
method: POST
path: "/admin/medias/search"
tags: ["Audio"]
---

# Returns a representation of the media table which match the supplied search criteria.

`POST /admin/medias/search`

## Request

- Base URL: `http://localhost:4550`
- URL: `http://localhost:4550/admin/medias/search`
- Auth: none declared

## Request body

- PostAdminMediasSearchRequest
  - `courthouse_ids` integer[]
  - `case_number` string
  - `courtroom_name` string
  - `hearing_start_at` string, date
  - `hearing_end_at` string, date

## Response `200`

OK

- PostAdminMediasSearchResponseItem[]
  - `id` integer: Unique media identifier, used internally by DARTS.
  - `courthouse` AdminMediaCourthouseResponse
    - `id` integer
    - `display_name` string
  - `courtroom` AdminMediaCourtroomResponse
    - `id` integer
    - `name` string
  - `start_at` string, date-time: start timestamp
  - `end_at` string, date-time: end timestamp
  - `channel` integer
  - `is_hidden` boolean

## Other responses

- `400`: A required parameter is missing or an invalid datatype or value was provided for property.
- `422`: Business Validation Error
- `500`: Internal Server Error

## Changes

- **2026-07-20** `f273786fb018`: 4 info
  - added the optional property `detail` to the response with the `422` status
  - added the optional property `status` to the response with the `422` status
  - added the optional property `title` to the response with the `422` status
  - added the optional property `type` to the response with the `422` status
- **2025-04-09** `6900b24c5e87`: 1 info
  - added the non-success response with the status `422`
- **2025-01-13** `f49e63851165`: 1 warning
  - the `courtroom_name` request property's maxLength was set to `64`
- **2024-07-02** `66cc28c96ed3`: 1 info
  - endpoint added

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