Hi @jini ,
You must be using wrong api method .Please use “Delete” method to hit the url successffully. add your vid and hapikey in the below mentioned curl code : $curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://api.hubapi.com/contacts/v1/contact/vid/61571?hapikey=demo’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ‘’,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘DELETE’,
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.