How to send data for /ide/run

Sending request with payload of following format:

{"sourceCode":"#include <iostream>\ using namespace std;\ \ int main() {\ \ \\/\\/ your code goes here\ \ return 0;\ }\ ","language":"CPP","input":"1"}

return the following output:

{"status":"OK","result":{"data":{"message":"params missing => [\\"sourceCode\\",\\"language\\"]","code":9006,"error":"Bad Request"}}}

How are we supposed to send the request?? What is the format(application/x-www-form-urlencoded, multipart/form-data, application/json)??

@pushkaranand, this should clear your doubt:

curl -X POST --header “Content-Type: application/json” --header “Accept: application/json” --header “Authorization: Bearer 262f1bc0a140dc6550af3e2887555108ee653091” -d “{
“sourceCode”: “#include
int main() { std::cout << ‘Hi!’; return 0; }”,
“language”: “C++ 4.3.2”,
“input”: “1 2 3”
}” “https://api.codechef.com/ide/run