POST /items/batch/:action
Activate, deactivate or delete several Items at once. To restore a deleted Item, use the single-Item action.
Status codes
200on success400on invalid request404if an Item is not found
Path parameters
action: One ofdeactivate,activate,delete.
deactivate
Sets the archived timestamp for every selected Item. Deleted Items remain deleted.
activate
Removes the archived timestamp for every selected Item. Deleted Items remain deleted; activating them does not restore them.
delete
Sets the deleted timestamp for every selected Item. Items with stock are also marked pending_delete and remain available where the stock still needs them.
Request properties
ids: An array of item ids to update.
Response properties
updated: The number of selected Item IDs processed. Batch actions also process Items that already have the requested status.