change put to post and receive json instead of xml