Method: subscriptions.patch
Permintaan HTTP
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
subscription.name |
string
ID. Nama resource langganan. Format: subscriptions/{subscription}
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Opsional. Kolom yang akan diperbarui. Jika dihilangkan, akan memperbarui kolom apa pun yang disertakan dalam permintaan. Anda dapat memperbarui salah satu kolom berikut dalam langganan:
expireTime : Stempel waktu saat langganan berakhir.
ttl : Time to live (TTL) atau durasi langganan.
eventTypes : Daftar jenis peristiwa yang akan diterima tentang resource target.
Untuk mengganti langganan sepenuhnya (setara dengan PUT ), gunakan * . Setiap kolom yang dihapus akan diperbarui dengan nilai kosong.
|
validateOnly |
boolean
Opsional. Jika ditetapkan ke true , permintaan akan divalidasi dan pratinjau permintaan, tetapi tidak akan memperbarui langganan.
|
Isi permintaan
Isi permintaan memuat instance Subscription
.
Isi respons
Jika berhasil, isi respons memuat instance Operation
.
- Kolom
metadata
berisi array kosong. - Kolom
response
berisi instance Subscription
yang diupdate.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
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
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-05 UTC.
[null,null,["Terakhir diperbarui pada 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"]]