Change update API to include a criteria to update on.