---
title: "Update media metadata"
method: PATCH
path: "/media/{id}"
tags: ["Media"]
---

# Update media metadata

`PATCH /media/{id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/media/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `id` string, required: Media ID

## Request body

- UpdateMediaInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `alt_text` string: Alt text for accessibility
  - `original_filename` string: User-visible filename; the file extension cannot be changed

## Response `200`

OK

- UpdateMediaOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `message` string, required: Success message

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
