---
title: "MediaImage"
description: "An image that is hosted on SHOPLINE."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-image'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-image.md'
---
# MediaImage

An image that is hosted on SHOPLINE.

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

## Type Signature

`MediaImage`

## Fields

* `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.

* `createdAt`

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

  Date and time of file creation (in ISO 8601 format).

* `id`

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

  Globally unique ID.

* `image`

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

  The image of the media. Returns null if the status is not READY.

* `mediaContentType`

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

  Media content type.

* `originalSource`

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

  The image's original source.

* `preview`

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

  Preview image for media.

* `updatedAt`

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

  Date and time of the last update to the file (in ISO 8601 format).

## Schema Definition

```graphql
type MediaImage { 
	alt: String
	createdAt: Date!
	id: ID!
	image: Image
	mediaContentType: MediaContentType!
	originalSource: MediaImageOriginalSource
	preview: MediaPreviewImage
	updatedAt: Date! 
}
```

## 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).

