PIpieDrive Update API is not working from Postman


#1

$pipeDrive_create_person_api = ‘https://api.pipedrive.com/v1/persons?api_token=’ . $api_token;
$curl_create_user = curl_init();

curl_setopt_array($curl_create_user, array(

  CURLOPT_RETURNTRANSFER  => 1,
  CURLOPT_URL             => $pipeDrive_create_person_api,
  CURLOPT_POST            => 1,
  CURLOPT_POSTFIELDS      => $user

));

$response = curl_exec($curl_create_user);
curl_close($curl_create_user);
$result = json_decode($response, true);

return $result;


#2

Hey @Subhankar_Acharjee!

Can you share the response you’re getting from us?

Also, from the title I see that you mentioned “Update API” but the Endpoint you’re using is for adding a person.

This is the correct one to update a person:
https://api.pipedrive.com/v1/persons/<person_id_here>?api_token=

I’ll wait for your confirmation! Thanks!