problems with update (put method and curl)