I am facing the same issue while creating app using REST API. First it was giving error Application ID Missing and now its giving unauthorized.
$headers = array(
"Content-Type: application/json",
"X-Parse-Email:",.PARSE_EMAIL_ID,
"X-Parse-Password:".PARSE_PASSWORD
);
$objectData = '{"appName":"'.$app_name.'", "clientClassCreationEnabled":true}';
$rest = curl_init();
curl_setopt($rest,CURLOPT_URL,$url);
curl_setopt($rest,CURLOPT_POST,1);
curl_setopt($rest,CURLOPT_POSTFIELDS,$objectData);
curl_setopt($rest,CURLOPT_HTTPHEADER,$headers);
curl_setopt($rest,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($rest,CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($rest);
curl_close($rest);
return $response;
Thank you.