fixing POST
fixed put-request