Method: subscriptions.patch
HTTP isteği
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
subscription.name |
string
Tanımlayıcı. Aboneliğin kaynak adı. Biçim: subscriptions/{subscription}
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
İsteğe bağlı. Güncellenecek alan. Atlanırsa istekte bulunan tüm alanları günceller. Bir abonelikte aşağıdaki alanlardan birini güncelleyebilirsiniz:
expireTime : Aboneliğin süresinin dolacağı zaman damgası.
ttl : Aboneliğin geçerlilik süresi (TTL) veya süresi.
eventTypes : Hedef kaynak hakkında alınacak etkinlik türlerinin listesi.
Aboneliği (PUT ile eşdeğeri) tamamen değiştirmek için * kullanın. Atlanan alanlar boş değerlerle güncellenir.
|
validateOnly |
boolean
İsteğe bağlı. true olarak ayarlanırsa isteği doğrular ve önizler ancak aboneliği güncellemez.
|
İstek içeriği
İstek metni, Subscription
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Operation
öğesinin bir örneğini içerir.
metadata
alanı boş bir dizi içeriyor.response
alanı, güncellenmiş bir Subscription
örneği içeriyor.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
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
Daha fazla bilgi için Yetkilendirme kılavuzunu inceleyin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-05 UTC.
[null,null,["Son güncelleme tarihi: 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"]]