Adjusted signature to use PUT and return the updated location.