---
title: "CreateMediaInput"
description: "Media-related fields required for product creation."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/create-media-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/create-media-input.md'
---
# CreateMediaInput

Media-related fields required for product creation.

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

## Input Fields

* `alt`

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

  The alternative textual description of the product media, usually a word or phrase with the characteristics or content of the media.<br/>
  Maximum length: 512

* `mediaContentType`

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

  The type of the media. 

* `originalSource`

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

  An external URL (for images only), a staged upload URL, or a SHOPLINE file link.

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-create.md).productCreate

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/product-update.md).productUpdate

