I am getting the response:
["Code"]=>
string(22) "IncorrectBodyParameter"
["Message"]=>
string(73) "Cannot perform operation because the body parameter is absent or invalid."
This is my PHP code:
$accesstoken = '___my token___';
$ch = curl_init();
$headr = array();
$headr[] = 'Content-length: 0';
$headr[] = 'accept: application/json';
$headr[] = 'Authorization: bearer '.$accesstoken;
curl_setopt($ch, CURLOPT_HTTPHEADER,$headr);
curl_setopt($ch, CURLOPT_POST,true);
// Initiate curl
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Set the url
$mnxdb_url = "___my url taken from swager__";
curl_setopt($ch, CURLOPT_URL,$mnxdb_url);
// Execute
$result=curl_exec($ch);
// check for error
if ($result === false)
{
print_r('Curl error: ' . curl_error($ch));
}
// Closing
curl_close($ch);