function update($name, $property) { $endpoint = "https://api.hubapi.com/deals/v1/properties/named/{$name}"; $property['name'] = $name; $options['json'] = $property; return $this->client->request('put', $endpoint, $options); }