---
title: "CreateMediaInput"
description: "创建商品媒体所需要的字段。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/inputs/create-media-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/inputs/create-media-input.md'
---
# CreateMediaInput

创建商品媒体所需要的字段。

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

## Input Fields

* `alt`

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

  媒体的替代文本描述，通常是具有媒体特征或内容的单词或短语。<br/>
  最大长度限制：512

* `mediaContentType`

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

  媒体的类型。

* `originalSource`

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

  一个外部链接（仅适用于图像）、一个预占文件访问链接或 SHOPLINE 文件链接。

## Argument from

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

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

