Adding Put method to the API