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); }