diff --git a/api/beacons/reassign_all.cfm b/api/beacons/reassign_all.cfm new file mode 100644 index 0000000..e9e2b09 --- /dev/null +++ b/api/beacons/reassign_all.cfm @@ -0,0 +1,22 @@ + + + + + + + + + UPDATE Beacons + SET BeaconBusinessID = + + + + SELECT COUNT(*) AS cnt FROM Beacons WHERE BeaconBusinessID = + + +#serializeJSON({ "OK": true, "MESSAGE": "All beacons reassigned to BusinessID #targetBusinessID#", "COUNT": qCount.cnt })# + + + #serializeJSON({ "OK": false, "ERROR": cfcatch.message })# + +