---
title: "ProductOption"
description: >
  The product attribute names, such as "Color," "Size," and "Material." Variants are chosen according to the configuration of these options. Each product attribute name has a length limit of 255 characters.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-option'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-option.md'
---
# ProductOption

The product attribute names, such as "Color," "Size," and "Material." Variants are chosen according to the configuration of these options. Each product attribute name has a length limit of 255 characters.

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

## Type Signature

`ProductOption`

## Fields

* `id`

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

  A universally unique identifier.

* `name`

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

  Name of the product option.

* `optionValues`

  [[ProductOptionValue!]](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-option-value.md)

  Option values return all the corresponding option value objects for the product option.

* `position`

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

  Position of the product option.

* `values`

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

  Values corresponding to product option names.

## Schema Definition

```graphql
type ProductOption { 
	id: ID!
	name: String!
	optionValues: [ProductOptionValue!]
	position: Int!
	values: [String!] 
}
```

## Field from

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).options

  The list of options for the product.

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

