--- title: UpdateMediaInput - GraphQL Admin description: The input fields required to update a media object. api_version: 2025-10 api_name: admin type: input-object api_type: graphql 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 --- # 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. *** ## Map No referencing types