Method: subscriptions.patch
एचटीटीपी अनुरोध
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
subscription.name |
string
आइडेंटिफ़ायर. सदस्यता के संसाधन का नाम. फ़ॉर्मैट: subscriptions/{subscription}
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
ज़रूरी नहीं. अपडेट किया जाने वाला फ़ील्ड. अगर इसे मिटाया जाता है, तो अनुरोध में शामिल सभी फ़ील्ड को अपडेट कर दिया जाता है. सदस्यता में, इनमें से किसी एक फ़ील्ड को अपडेट किया जा सकता है:
expireTime : सदस्यता खत्म होने का टाइमस्टैंप.
ttl : सदस्यता का टाइम-टू-लाइव (टीटीएल) या अवधि.
eventTypes : टारगेट रिसॉर्स के बारे में जानकारी पाने के लिए, इवेंट के टाइप की सूची.
सदस्यता को पूरी तरह बदलने के लिए (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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]