Method: subscriptions.patch
HTTP 요청
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
subscription.name |
string
식별자. 정기 결제의 리소스 이름입니다. 형식: subscriptions/{subscription}
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
선택사항입니다. 업데이트할 필드입니다. 생략하면 요청에 포함된 모든 필드가 업데이트됩니다. 구독에서 다음 필드 중 하나를 업데이트할 수 있습니다.
정기 결제를 완전히 바꾸려면 (PUT 와 같음) * 를 사용합니다. 생략된 필드는 빈 값으로 업데이트됩니다.
|
validateOnly |
boolean
선택사항입니다. true 로 설정하면 요청을 검증하고 미리 보이지만 정기 결제를 업데이트하지는 않습니다.
|
요청 본문
요청 본문에 Subscription
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 Operation
의 인스턴스가 포함됩니다.
metadata
필드에는 빈 배열이 포함됩니다.response
필드에는 업데이트된 Subscription
인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
자세한 내용은 승인 가이드를 참조하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-05(UTC)
[null,null,["최종 업데이트: 2024-11-05(UTC)"],[[["This API updates or renews a Google Workspace subscription using a PATCH request to the specified URL."],["You can optionally specify an `updateMask` to target specific fields for updating and `validateOnly` to preview the request without applying changes."],["The request body should contain a `Subscription` object and the successful response will include an `Operation` object with the updated `Subscription`."],["Authorization requires specific OAuth scopes related to Google Chat or Google Meet, as detailed in the documentation."]]],["This documentation details updating Google Workspace subscriptions via a `PATCH` HTTP request to `https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}`. Key actions involve specifying the subscription name in the path and using `updateMask` in query parameters to selectively modify fields like `expireTime`, `ttl`, or `eventTypes`. The request body contains subscription details, while the successful response includes an `Operation` with the updated subscription. Authentication requires specific OAuth scopes. The process allows for request validation without actual modification.\n"]]