SevenShores\Hubspot\Resources\Contacts::update PHP Method

update() public method

public update ( integer $id, array $properties ) : Response
$id integer The contact id.
$properties array The contact properties to update.
return SevenShores\Hubspot\Http\Response
    function update($id, $properties)
    {
        $endpoint = "https://api.hubapi.com/contacts/v1/contact/vid/{$id}/profile";
        $options['json'] = ['properties' => $properties];
        return $this->client->request('post', $endpoint, $options);
    }