Kan du ikke tage udgangspunkt i det de har på deres API dok side?
// Creates a contact. The server replies with a list of contacts and we
// return the id of the first contact of the list
function createContact($client, $organizationId) {
$contact = array(
'organizationId' => $organizationId,
'name' => "Ninjas",
'countryId' => "DK"
);
$res = $client->request("POST", "/contacts", array('contact' => $contact));
return $res->contacts[0]->id;
}
I stedet for POST, så lav et PUT og i stedet for /contacts, så er det sikkert /contact/{id}, hvor {id} er det id på kontaktpersonen du forsøger at opdatere. Der burde ikke være så meget mere end det i det.