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

# Update photo media

`PATCH /medias/photo/{id}`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/medias/photo/{id}`
- Auth: API key in header `apiKey`

## Path parameters

- `id` string, required

## Headers

- `channel` string, required
- `organization` string, required

## Request body

- UpdateMediaImageInput
  - `filename` string, nullable, required: File name
  - `upload` string, nullable, required: Upload ID
  - `status` string, nullable, required: The current status of the media content. Enum
  - `baseUrl` string, nullable, required: Base URL
  - `width` number, nullable, required: Image width
  - `height` number, nullable, required: Image height
  - `aspectRatio` string, nullable, required: Image aspect ratio
  - `orientation` string, nullable, required: Image orientation
  - `imgPath` string, nullable, required: Path to the image file

## Response `200`

Image media updated.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
