Support

updateOptionValue

View as Markdown

Update an existing option value.

mutation

Requires commerce.product:write.

Update an existing option value.

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 MutationUpdateOptionValueInput! required
    • label String optional
    • metafields [UpsertMetafieldInput!] optional
      • key String! required
      • namespace String! required
      • type String! required
      • value String! required
    • name String optional
    • position Int optional

Possible returns

  • OptionValue OptionValue

Last updated on

How is this guide?