Support

updateOption

View as Markdown

Update an existing option.

mutation

Requires commerce.product:write.

Update an existing option.

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • id String! required
  • input MutationUpdateOptionInput! required
    • description String optional
    • htmlDescription String optional
    • HTMLDescription String optional — Deprecated: Use htmlDescription instead.
    • label String optional
    • metafields [UpsertMetafieldInput!] optional
      • key String! required
      • namespace String! required
      • type String! required
      • value String! required
    • name String optional
    • position Int optional
    • shareable Boolean optional
    • type String optional — The type of the Option, one of TEXT, NUMBER, LIST. Option Values are only available on the 'LIST' type.
    • validation CreateOptionValidationInput optional
      • max Int optional
      • min Int optional

Possible returns

  • Option Option

Last updated on

How is this guide?