people.contactGroups.members.modify
Add or remove contacts from a contact group owned by the authenticated user. Supports system groups like myContacts and starred for additions, and removals from deprecated groups.
Instructions
Modify the members of a contact group owned by the authenticated user. The only system contact groups that can have members added are contactGroups/myContacts and contactGroups/starred. Other system contact groups are deprecated and can only have contacts removed [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON ModifyContactGroupMembersRequest object accepting resourceNamesToAdd, resourceNamesToRemove; pass it via params or whole via body_file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON ModifyContactGroupMembersRequest object. | |
| request_body | No | Request body of type ModifyContactGroupMembersRequest: pass it via `params` (merged into the built body) or whole via `body_file`. | |
| resourceName | Yes | [URL path segment] Required. The resource name of the contact group to modify. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notFoundResourceNames | No | ||
| canNotRemoveLastContactGroupResourceNames | No |