Reset location data by email
Run in Apidog
Finds the location using locationEmail and deletes user-created rows for that location across business tables, preserving registration defaults (walk-in/default vendor/default category/front outlet/default seeded records).
Request Body Params application/json
{
"locationEmail" : "steve@klakpad.com"
} Request Code Samples
curl --location --request POST 'https://mock.apidog.com/m1/1052146-0-1108743/settings/data-reset/by-location-email' \
--header 'Content-Type: application/json' \
--data-raw '{
"locationEmail": "steve@klakpad.com"
}' Responses
{
"status" : "completed" ,
"locationEmail" : "branch01@acme.com" ,
"locationId" : 7 ,
"summary" : {
"rowsDeleted" : 12450 ,
"rowsPreserved" : 38 ,
"tablesAffected" : 31
} ,
"byTable" : [
{
"connection" : "transaction" ,
"table" : "item_log" ,
"deletedCount" : 4300 ,
"preservedCount" : 0
} ,
{
"connection" : "inventory" ,
"table" : "item_category" ,
"deletedCount" : 25 ,
"preservedCount" : 1
}
]
}
Modified at 2026-03-04 23:55:47