Just add a trailling slash when you are doing a PUT request otherwise it will redirect you and make it a GET request