Changing the PUT endpoint to take an id