Method: subscriptions.patch
HTTP-Anfrage
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
subscription.name |
string
Kennung. Ressourcenname des Abos. Format: subscriptions/{subscription}
|
Suchparameter
Parameter |
updateMask |
string (FieldMask format)
Optional. Das zu aktualisierende Feld. Wenn nichts angegeben ist, werden alle in der Anfrage enthaltenen Felder aktualisiert. Sie können eines der folgenden Felder in einem Abo aktualisieren:
expireTime : Der Zeitstempel, zu dem das Abo abläuft.
ttl : Die Gültigkeitsdauer (TTL) oder die Dauer des Abos.
eventTypes : Die Liste der Ereignistypen, die für die Zielressource empfangen werden sollen.
Verwenden Sie * , um das Abo vollständig zu ersetzen (entspricht PUT ). Ausgelassene Felder werden mit leeren Werten aktualisiert.
|
validateOnly |
boolean
Optional. Wenn true festgelegt ist, wird die Anfrage validiert und eine Vorschau angezeigt, das Abo wird jedoch nicht aktualisiert.
|
Anfragetext
Der Anfragetext enthält eine Instanz von Subscription
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Operation
.
- Das Feld
metadata
enthält ein leeres Array. - Das Feld
response
enthält eine aktualisierte Instanz von Subscription
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
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
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-05 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]