SevenShores\Hubspot\Resources\ContactProperties::updateGroup PHP Метод

updateGroup() публичный Метод

Update a previously created contact property group.
См. также: http://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property_group
public updateGroup ( string $name, array $group ) : Response
$name string
$group array
Результат SevenShores\Hubspot\Http\Response
    function updateGroup($name, $group)
    {
        $endpoint = "https://api.hubapi.com/contacts/v2/groups/named/{$name}";
        $group['name'] = $name;
        $options['json'] = $group;
        return $this->client->request('put', $endpoint, $options);
    }