---
title: UpdateMediaInput - GraphQL Admin
description: The input fields required to update a media object.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/UpdateMediaInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/UpdateMediaInput.md
api_name: admin
api_type: graphql
type: input-object
---

# Update​Media​Input

input\_object

The input fields required to update a media object.

## Fields

* alt

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  The alt text associated to the media.

* id

  [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  non-null

  Specifies the media to update.

* preview​Image​Source

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  The source from which to update the media preview image. May be an external URL or staged upload URL.

***

## Mutations using this input

* [product​Update​Media.media](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productUpdateMedia#arguments-media)

  ARGUMENT

***

## Map

### Mutations using this input

* [product​Update​Media.media](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productUpdateMedia#arguments-media)
