Skip to main content
Anchor to inventoryBulkToggleActivation

inventoryBulkToggleActivation

mutation

Requires write_inventory access scope. Also: The user must have a permission to update the activation status of an inventory.

Activates or deactivates an inventory item at multiple locations. When you activate an InventoryItem at a Location, that location can stock and track quantities for that item. When you deactivate an inventory item at a location, the inventory item is no longer stocked at that location.

The mutation accepts an inventory item ID and a list of location-specific activation settings. It returns the updated inventory item and any activated InventoryLevel objects.

Learn more about managing inventory quantities and states.

•ID!
required

The ID of the inventory item to modify the activation status locations for.

Anchor to inventoryItemUpdatesinventoryItemUpdates
•[InventoryBulkToggleActivationInput!]!
required

A list of pairs of locations and activate status to update for the specified inventory item.


Was this section helpful?

Anchor to InventoryBulkToggleActivationPayload returnsInventoryBulkToggleActivationPayload returns

•InventoryItem

The inventory item that was updated.

•[InventoryLevel!]

The activated inventory levels.

•[InventoryBulkToggleActivationUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?