Google Workspace 구독을 업데이트하거나 갱신합니다. 이 메서드를 사용하는 방법을 알아보려면 Google Workspace 구독 업데이트 또는 갱신을 참고하세요.
Chat 대상 리소스의 구독의 경우 다음과 같이 구독을 업데이트할 수 있습니다.
chat.app으로 시작하는 승인 범위를 지정하고 일회성 관리자 승인을 받는 Chat 앱. 자세한 내용은 관리자 승인으로 Chat 앱으로 승인을 참고하세요.이름에
app이 포함되지 않는 승인 범위를 지정하는 사용자. 자세한 내용은 Chat 사용자로 승인을 참고하세요.
HTTP 요청
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
| 파라미터 | |
|---|---|
subscription.name |
식별자. 구독의 리소스 이름입니다. 형식: |
쿼리 파라미터
| 파라미터 | |
|---|---|
updateMask |
선택사항입니다. 업데이트할 필드입니다. 생략하면 요청에 포함된 모든 필드가 업데이트됩니다. 구독에서 다음 필드 중 하나를 업데이트할 수 있습니다.
|
validateOnly |
선택사항입니다. |
요청 본문
요청 본문에 Subscription의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 Operation의 인스턴스가 포함됩니다.
metadata필드에 빈 배열이 포함됩니다.response필드에 업데이트된Subscription인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.messages.reactions.readonlyhttps://www.googleapis.com/auth/chat.membershipshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.app.membershipshttps://www.googleapis.com/auth/chat.app.memberships.readonlyhttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.spaces.readonlyhttps://www.googleapis.com/auth/meetings.space.createdhttps://www.googleapis.com/auth/meetings.space.readonlyhttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
자세한 내용은 승인 가이드를 참고하세요.