Method: spaces.members.patch
HTTP 요청
PATCH https://chat.googleapis.com/v1/{membership.name=spaces/*/members/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
membership.name |
string
식별자. 서버에서 할당한 멤버십의 리소스 이름입니다. 형식: spaces/{space}/members/{member}
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
필수입니다. 업데이트할 필드 경로입니다. 여러 값은 쉼표로 구분하거나 * 를 사용하여 모든 필드 경로를 업데이트합니다. 현재 지원되는 필드 경로는 다음과 같습니다.
|
useAdminAccess |
boolean
선택사항입니다. true 인 경우 메서드는 사용자의 Google Workspace 관리자 권한을 사용하여 실행됩니다. 호출하는 사용자는 채팅 및 스페이스 대화 관리 권한이 있는 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
자세한 내용은 승인 가이드를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]