---
title: "ImageInput"
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/image-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/inputs/image-input.md'
---
# ImageInput

图片的输入字段

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

## Type Signature

`ImageInput`

## Input Fields

* `id`

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

  图像的唯一 ID

* `altText`

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

  用于分享图片的性质或内容的单词或短语

* `src`

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

  图像的 URL，可能是分阶段上传 URL

## Schema Definition

```graphql
input ImageInput { 
	id: ID
	altText: String
	src: String 
}
```

## Input field from

* [CollectionInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/collection-input.md).image

  与分类相关的封面图

* [CollectionInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/collection-input.md).banner

  与分类相关的横幅图

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

