People API . contactGroups . members

Instance Methods

modify(resourceName, body, x__xgafv=None)

Modify the members of a contact group owned by the authenticated user.

Method Details

modify(resourceName, body, x__xgafv=None)
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. Args: resourceName: string, The resource name of the contact group to modify. (required) body: object, The request body. (required) The object takes the form of: { # A request to modify an existing contact group's members. Contacts can be # removed from any group but they can only be added to a user group or # "myContacts" or "starred" system groups. "resourceNamesToRemove": [ # The resource names of the contact people to remove in the form of in the # form of `people/`person_id. "A String", ], "resourceNamesToAdd": [ # The resource names of the contact people to add in the form of in the form # `people/`person_id. "A String", ], } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The response to a modify contact group members request. "notFoundResourceNames": [ # The contact people resource names that were not found. "A String", ], }