PATCH /v1/spaces/{spacesId}/members/{membersId}
Changed onUpdates a membership. For an example, see Update a user's membership in a space. Supports the following types of authentication: - App authentication with administrator approval and the authorization scope: - https://www.googleapis.com/auth/chat.app.memberships (only in spaces the app created) - User authentication with one of the following authorization scopes: - https://www.googleapis.com/auth/chat.memberships - https://www.googleapis.com/auth/chat.import (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, use_admin_access is true, and the following authorization scope is used: - https://www.googleapis.com/auth/chat.admin.memberships
Request
- Base URLhttps://chat.googleapis.com
- URLhttps://chat.googleapis.com/v1/spaces/{spacesId}/members/{membersId}
- Auth
- OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.admin.membershipsAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.admin.memberships
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.app.membershipsAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.app.memberships
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.importAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.import
- or OAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.membershipsAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.memberships
Path parameters
Query parameters
Required. The field paths to update. Separate multiple values with commas or use * to update all field paths. Currently supported field paths: - role
Optional. When true, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege. Requires the chat.admin.memberships OAuth 2.0 scope.
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/chat.admin.membershipswas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/chat.admin.membershipswas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/chat.membershipswas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/chat.membershipswas removed from the endpoint's security schemeOauth2c
- info