Hi, the API docs give a fairly simple example of adding a Contact to a existing Organization, however what I'm doing is adding the Contact but not attaching it to the Org. Can you please help me out with where I'm going wrong?
The endpoint I'm POSTing to is "contacts.json", and the full PHP API call is:
$new_contact = make_api_call('contacts.json', 'POST', $contactinfo, $uid, $key);
The contents of the $contactinfo array are
{
"last_name":"Porult",
"company_id":"5affeae41787fafdfbaf1136"
}
Am I leaving something out, or forming my array badly?
Please help.
Hi FrankEBailey,
Apologies about the delayed response.
In your example request, can you try using company_name instead of company_id to specify the company to add the contact to?
{
"last_name":"Porult",
"company_name":"some_company_name"
}
Thank you,
Kevin