---
title: "Approves deletion of media"
method: POST
path: "/admin/medias/{media_id}/approve-deletion"
tags: ["Audio"]
---

# Approves deletion of media

`POST /admin/medias/{media_id}/approve-deletion`

## Request

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

## Path parameters

- `media_id` integer, required

## Response `200`

OK

- MediaApproveMarkedForDeletionResponse
  - `id` integer: The media id
  - `is_hidden` boolean: The media hidden state
  - `is_deleted` boolean: The media deleted state
  - `admin_action` AdminActionResponse
    - `id` integer: The admin action id
    - `reason_id` integer: The admin action reason id
    - `hidden_by_id` integer: The user that made the entity hidden
    - `hidden_at` string, date-time: The date and time that made the entity hidden
    - `is_marked_for_manual_deletion` boolean: The entity was manually marked for deletion
    - `marked_for_manual_deletion_by_id` integer: The user that marked the entity for deletion
    - `marked_for_manual_deletion_at` string, date-time: The date and time that the entity was marked for deletion
    - `ticket_reference` string: The ticket reference for the admin action
    - `comments` string: The comments for the admin action

## Other responses

- `400`: A required parameter is missing or an invalid datatype or value was provided for property.
- `404`: Not Found Error
- `409`: Data conflicting
- `422`: Business Validation Error

## Changes

- **2026-07-20** `f273786fb018`: 8 info
  - added `#/components/schemas/problem` to the response body `allOf` list for the response status `404`
  - 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 `404`
  - removed `#/components/schemas/problem.yaml` from the response body `allOf` list for the response status `409`
  - …4 more
- **2025-04-28** `d4cf7d652234`: 1 breaking
  - for the `path` request parameter `media_id`, the format changed from no format to `int64`
- **2025-04-09** `6900b24c5e87`: 1 info
  - added the non-success response with the status `422`
- **2024-09-26** `8b4231abd1b0`: 1 info
  - endpoint added

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