Added update function to API