Hi there,
if i use the post lead function via:
https://developers.pipedrive.com/docs/api/v1/#!/Leads/post_leads
the result is:
"error_info": "child \"person_id\" fails because [\"person_id\" must be a number]"
but i entered a number (8275). what am i doing wrong??
if i try it with my API code it fails with the following message:
2020-07-22 18:06:30 debug: Request Data : Array
(
[title] => Anfrage Kontaktformular 2020-07-22 18:06:30
[note] => Mein Anliegen
[person_id] => 8279
[organization_id] => 2829
)
2020-07-22 18:06:30 info: Response Status : 400
2020-07-22 18:06:30 error: Got Http response code 400 when accessing https://XXXXXXX.pipedrive.com/v1/leads?api_token=YYYYYYYYYYY. {“success”:false,“data”:null,“additional_data”:null,“error”:“provided dataset is not valid”,“error_info”:“child “title” fails because [“title” is required]”}
but i submitted a title…
with nearly the same code i can create a person and an organisation. changing the endpoint to lead and the data fields is enough to make it stop working