---
title: "Edit Media"
method: PATCH
path: "/admin/media/{row_id}/edit"
tags: ["Media"]
---

# Edit Media

`PATCH /admin/media/{row_id}/edit`

## Request

- Base URL: `https://api.thaiprops.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thaiprops.com/admin/media/{row_id}/edit`
- Auth: none declared

Overwrite an existing media file (used by the React image editor).
For now we overwrite the original image on disk and return the
updated row in the same shape as /list and /browse.

## Path parameters

- `row_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api.md) · [All operations](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api/revisions/acaced1e12a2?raw)
