How to send data for /ide/run

Sending request with payload of following format:

{"sourceCode":"#include <iostream>\\nusing namespace std;\\n\\nint main() {\\n\\t\\/\\/ your code goes here\\n\\treturn 0;\\n}\\n","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 \n int main() { std::cout << ‘Hi!’; return 0; }”,
“language”: “C++ 4.3.2”,
“input”: “1 2 3”
}” “https://api.codechef.com/ide/run