Support

addAttributesToSkuGroup

View as Markdown

Add Attributes to an existing SKU group.

mutation

Requires commerce.product:write.

Add Attributes to an existing SKU group.

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 MutationAddAttributesToSkuGroupInput! required
    • attributes [CreateSKUGroupAttributeInput!]! required
      • label String! required
      • description String optional
      • metafields [CreateMetafieldInput!] optional
        • key String! required
        • namespace String! required
        • type String! required — Metafield value type. Live catalog validation accepts lowercase values such as boolean, string, stringMultiLine, number, numberDecimal, date, dateTime, json, measurement, url, reference, money, list.string, list.number, list.numberDecimal. Uppercase STRING is rejected.
        • value String! required
      • name String optional
      • position Int optional
      • values [AssociateAttributeValueInput!] optional
        • label String! required
        • name String optional
        • position Int optional

Possible returns

  • SKUGroup SKUGroup

Last updated on

How is this guide?