use body to send data for posts and puts