---
title: "Media"
description: "Represents the media interface."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/interfaces/media'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/interfaces/media.md'
---
# Media

Represents the media interface.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Interface

## Type Signature

`Media`

## Fields

* `mediaContentType`

  [MediaContentType!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/enums/media-content-type.md)

  Media content type.

* `id`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Globally unique ID.

* `preview`

  [MediaPreviewImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-preview-image.md)

  Preview image for media.

* `alt`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Words or phrases that share the characteristics or content of media.

## Implemented By

* [MediaImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-image.md)

* [ExternalVideo](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/external-video.md)

* [Video](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/video.md)

## Schema Definition

```graphql
interface Media { 
	mediaContentType: MediaContentType!
	id: ID!
	preview: MediaPreviewImage
	alt: String 
}
```

## Field from

* [MediaEdge](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-edge.md).node

  Node of the Media.

* [MediaConnection](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-connection.md).nodes

  List of nodes contained within a MediaEdge.

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).featuredMedia

  The product's featured media.

## Interface implemented by

* [ExternalVideo](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/external-video.md)

  Represents videos hosted externally to SHOPLINE.

* [Video](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/video.md)

  Represents a video hosted by Shopline. 

* [MediaImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-image.md)

  An image that is hosted on SHOPLINE.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

