---
title: Media - GraphQL Admin
description: Represents a media interface.
api_version: unstable
api_name: admin
source_url:
  html: 'https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/Media'
  md: 'https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/Media.md'
---

# Media

interface

Requires `read_products` access scope, `read_files` access scope, `read_themes` access scope, `read_orders` access scope, `read_draft_orders` access scope, `read_images` access scope or `read_quick_sale` access scope.

Represents a media interface.

## Fields

* alt

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

  A word or phrase to share the nature or contents of a media.

* id

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

  non-null

  A globally-unique ID.

* media​Content​Type

  [Media​Content​Type!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/MediaContentType)

  non-null

  The media content type.

* media​Errors

  [\[Media​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MediaError)

  non-null

  Any errors which have occurred on the media.

* media​Warnings

  [\[Media​Warning!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MediaWarning)

  non-null

  The warnings attached to the media.

* preview

  [Media​Preview​Image](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MediaPreviewImage)

  The preview image for the media.

* status

  [Media​Status!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/MediaStatus)

  non-null

  Current status of the media.

***

##### Variables

```json
{
	"alt": "",
	"id": "",
	"mediaContentType": "",
	"mediaErrors": "",
	"mediaWarnings": "",
	"preview": "",
	"status": ""
}
```

##### Schema

```graphql
interface Media {
  alt: String
  id: ID!
  mediaContentType: MediaContentType!
  mediaErrors: [MediaError!]!
  mediaWarnings: [MediaWarning!]!
  preview: MediaPreviewImage
  status: MediaStatus!
}
```
