티스토리 수익 글 보기
Method: subscriptions.patch
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
This method updates or renews a Google Workspace subscription using a PATCH request to the specified endpoint.
-
Developers can update subscription fields like expireTime, ttl, and eventTypes using the updateMask query parameter.
-
Request bodies should contain a Subscription object, while successful responses include an Operation object with the updated Subscription.
-
Authorization requires one of the listed OAuth scopes, such as
https://www.googleapis.com/auth/chat.spacesor similar, granting specific permissions.
Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.
For a subscription on a Chat target resource, you can update a subscription as:
A Chat app subscribing to space events where the app is a member by specifying an authorization scope that begins with
chat.appand getting one-time administrator approval. To learn more, see Authorize as a Chat app with administrator approval.Developer Preview: A Chat app subscribing to all events in a Google Workspace organization by specifying an authorization scope that begins with
chat.app.alland getting one-time administrator approval. To learn more, see Subscribe to all Google Chat events in a Workspace organization .A user by specifying an authorization scope that doesn’t include
appin its name. To learn more, see Authorize as a Chat user.
HTTP request
PATCH https://workspaceevents.googleapis.com/v1/{subscription.name=subscriptions/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
subscription.name |
Identifier. Resource name of the subscription. Format: |
Query parameters
| Parameters | |
|---|---|
updateMask |
Optional. The field to update. If omitted, updates any fields included in the request. You can update one of the following fields in a subscription:
When using the |
validateOnly |
Optional. If set to |
Request body
The request body contains an instance of Subscription.
Response body
If successful, the response body contains an instance of Operation.
- The
metadatafield contains an empty array. - The
responsefield contains an updated instance ofSubscription.
Authorization scopes
Requires one of the following OAuth scopes:
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.all.memberships.readonlyhttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.all.messages.readonlyhttps://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.spaces.readonlyhttps://www.googleapis.com/auth/chat.app.all.spaces.readonlyhttps://www.googleapis.com/auth/chat.app.all.users.readstate.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
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-15 UTC.