Support

updateAttributeValue

View as Markdown

Update an existing attribute value.

mutation

Requires commerce.product:write.

Update an existing attribute 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 MutationUpdateAttributeValueInput! 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

  • AttributeValue AttributeValue — Value for an Attribute.

Last updated on

How is this guide?