## Update group `groups.update(group_id, **kwargs) -> GroupResponse` **patch** `/v1/groups/{group_id}` Partially updates a group's name or external reference ID. Returns 404 if the group does not belong to the authenticated organization. ### Parameters - `group_id: String` Unique group identifier (grp_*) - `external_reference_id: String` - `name: String` ### Returns - `class GroupResponse` Response containing a single group resource. - `data: Group` - `id: String` Prefixed group identifier (`grp_`). - `created_at: Time` Group creation timestamp (ISO 8601, UTC). - `external_reference_id: String` Stable identifier for this group in the integrator's own system. - `name: String` Human-readable group name. - `organization_id: String` Prefixed organization identifier (`org_`). - `updated_at: Time` Last-update timestamp (ISO 8601, UTC). ### Example ```ruby require "vitable_connect" vitable_connect = VitableConnect::Client.new( api_key: "My API Key", environment: "environment_1" # defaults to "production" ) group_response = vitable_connect.groups.update("grp_abc123def456") puts(group_response) ``` #### Response ```json { "data": { "id": "grp_abc123def456", "organization_id": "org_abc123def456", "name": "Tier 1 (renamed)", "external_reference_id": "mol_seg_001_v2", "created_at": "2026-01-15T10:30:00Z", "updated_at": "2026-01-16T09:12:00Z" } } ```