Wipe Inventory
POST
/v1/actions/wipe-inventory
const url = 'https://example.com/api/v1/actions/wipe-inventory';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"wipeLocations":true,"wipeMaintenance":true,"wipeTags":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/actions/wipe-inventory \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "wipeLocations": true, "wipeMaintenance": true, "wipeTags": true }'Deletes all items in the inventory
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Wipe options
Media type application/json
object
wipeLocations
boolean
wipeMaintenance
boolean
wipeTags
boolean
Example generated
{ "wipeLocations": true, "wipeMaintenance": true, "wipeTags": true}Responses
Section titled “ Responses ”OK
Media type application/json
object
completed
integer
Example generated
{ "completed": 1}