---
title: OptionSetInput - GraphQL Admin
description: The input fields for creating or updating a product option.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OptionSetInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OptionSetInput.md
api_name: admin
api_type: graphql
type: input-object
---

# Option​Set​Input

input\_object

The input fields for creating or updating a product option.

## Fields

* id

  [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  Specifies the product option to update.

* linked​Metafield

  [Linked​Metafield​Create​Input](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/LinkedMetafieldCreateInput)

  Specifies the metafield the option is linked to.

* name

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  Name of the option.

* position

  [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

  Position of the option.

* values

  [\[Option​Value​Set​Input!\]](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OptionValueSetInput)

  Value associated with an option.

***

## Input objects using this input

* [Gift​Card​Product​Set​Input.productOptions](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetInput#fields-productOptions)

  INPUT OBJECT

  The input fields for creating or updating a gift card product with the [`giftCardProductSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet) mutation.

  For list fields like [`variants`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-input.fields.variants), the mutation creates new entries, updates existing ones, and deletes any entries not included in the input. All other fields update only when explicitly provided, leaving omitted fields unchanged.

* [Product​Set​Input.productOptions](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductSetInput#fields-productOptions)

  INPUT OBJECT

  The input fields required to create or update a product via ProductSet mutation.

***

## Map

### Input objects using this input

* [Gift​Card​Product​Set​Input.productOptions](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetInput#fields-productOptions)
* [Product​Set​Input.productOptions](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductSetInput#fields-productOptions)
