Method: spaces.members.patch
HTTP リクエスト
PATCH https://chat.googleapis.com/v1/{membership.name=spaces/*/members/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
membership.name |
string
ID。サーバーによって割り当てられたメンバーシップのリソース名。 形式: spaces/{space}/members/{member}
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールドパス。複数の値をカンマで区切るか、* を使用してすべてのフィールドパスを更新します。 現在サポートされているフィールドパスは次のとおりです。
|
useAdminAccess |
boolean
省略可。true の場合、メソッドはユーザーの Google Workspace 管理者権限を使用して実行されます。 呼び出し元のユーザーは、Chat とスペースの会話の管理権限を持つ Google Workspace 管理者である必要があります。 chat.admin.memberships OAuth 2.0 スコープが必要です。
|
リクエストの本文
リクエストの本文には Membership
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には Membership
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
https://www.googleapis.com/auth/chat.app.memberships
https://www.googleapis.com/auth/chat.admin.memberships
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.memberships
詳しくは、認可ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-27 UTC。
[null,null,["最終更新日 2025-02-27 UTC。"],[[["This method updates a Google Chat membership, allowing you to modify aspects like user roles within a space."],["It supports both app and user authentication, with an option for administrator privileges using `useAdminAccess`."],["Requires specifying fields to update with `updateMask` and includes optional use of administrator privileges."],["You need appropriate OAuth scopes such as `chat.app.memberships` or `chat.admin.memberships` for authorization."]]],["This documentation details updating a membership via a `PATCH` HTTP request to `https://chat.googleapis.com/v1/{membership.name=spaces/*/members/*}`. Key actions include setting the `membership.name` path parameter and using the `updateMask` query parameter to specify fields for updating, such as `role`. Optionally, `useAdminAccess` can grant administrator privileges. The request body defines the new membership details, and the response body will contain updated membership information. Multiple authorization scopes are required.\n"]]