Fix error logging. Change POST to PUT