Fix POST/PUT methods