Changed the request body expected from HTML form format to json format.