inventory Bulk Toggle Activation
Requires 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 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 objects.
Learn more about managing inventory quantities and states.
Arguments
- Anchor to inventoryItemIdinventory•ID!
Item Id required The ID of the inventory item to modify the activation status locations for.
- Anchor to inventoryItemUpdatesinventory•[Inventory
Item Updates Bulk Toggle Activation Input!]! required A list of pairs of locations and activate status to update for the specified inventory item.
- Anchor to inventoryIteminventory•Inventory
Item Item The inventory item that was updated.
- Anchor to inventoryLevelsinventory•[Inventory
Levels Level!] The activated inventory levels.
- Anchor to userErrorsuser•[Inventory
Errors Bulk Toggle Activation User Error!]! non-null The list of errors that occurred from executing the mutation.