Method: properties.dataStreams.patch
किसी प्रॉपर्टी पर डेटा स्ट्रीम को अपडेट करता है.
एचटीटीपी अनुरोध
PATCH https://analyticsadmin.googleapis.com/v1alpha/{dataStream.name=properties/*/dataStreams/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
dataStream.name |
string
सिर्फ़ आउटपुट के लिए. इस डेटा स्ट्रीम का संसाधन नाम. फ़ॉर्मैट: properties/{property_id}/dataStreams/{stream_id} उदाहरण: "properties/1000/dataStreams/2000"
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
ज़रूरी है. अपडेट किए जाने वाले फ़ील्ड की सूची. छूटे हुए फ़ील्ड अपडेट नहीं किए जाएंगे. पूरी इकाई को बदलने के लिए, सभी फ़ील्ड से मैच करने के लिए, स्ट्रिंग "*" के साथ एक पाथ का इस्तेमाल करें. यह फ़ील्ड के पूरी तरह से क्वालिफ़ाइड नामों की सूची है. इसमें नामों को कॉमा लगाकर अलग किया गया है. उदाहरण: "user.displayName,photo" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में DataStream
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में DataStream
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/analytics.edit
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-01-14 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-01-14 (UTC) को अपडेट किया गया."],[[["Updates a DataStream associated with a Google Analytics 4 property using a PATCH request to the specified endpoint."],["The request must include a `dataStream.name` path parameter to identify the DataStream and an `updateMask` query parameter indicating the fields to update."],["The request body should contain a DataStream object with the updated values, and upon success, the response body will return the updated DataStream object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines how to update a DataStream via a PATCH request to the specified URL, using gRPC Transcoding syntax. The `dataStream.name` path parameter identifies the target stream. The `updateMask` query parameter dictates which fields to modify. The request and response bodies both utilize the `DataStream` resource. Authorization requires the `analytics.edit` OAuth scope. The \"Try it!\" option allows users to directly interact with the service.\n"]]