Support

updateInventoryAdjustmentReason

View as Markdown

Update the label of a store-scoped inventory adjustment reason. Global preset reasons cannot be updated.

mutation

Requires commerce.product:write.

Update the label of a store-scoped inventory adjustment reason. Global preset reasons cannot be updated.

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

  • input MutationUpdateInventoryAdjustmentReasonInput! required
    • id ID! required
    • label String optional

Possible returns

  • InventoryAdjustmentReason InventoryAdjustmentReason — A reason that can be associated with an inventory adjustment to explain why it occurred. Global preset reasons are prefixed with "g-" (e.g. g-damage, g-shrinkage). Store-scoped reasons use plain kebab-case names.

Last updated on

How is this guide?