---
title: "ImageInput"
description: "The image input fields."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/image-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/image-input.md'
---
# ImageInput

The image input fields.

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

## Type Signature

`ImageInput`

## Input Fields

* `id`

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

  The image's unique ID.

* `altText`

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

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

* `src`

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

  The image's URL, which could be a staged-upload URL.

## Schema Definition

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

## Input field from

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

  The banner related to the collection.

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

  The image related to the collection.

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

