Method: accounts.patch
किसी खाते की जानकारी अपडेट करता है.
एचटीटीपी अनुरोध
PATCH https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
account.name |
string
सिर्फ़ आउटपुट के लिए. इस खाते के संसाधन का नाम. फ़ॉर्मैट: accounts/{account} उदाहरण: "accounts/100"
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
ज़रूरी है. अपडेट किए जाने वाले फ़ील्ड की सूची. फ़ील्ड के नाम, स्नेक केस में होने चाहिए. उदाहरण के लिए, "field_to_update". छूटे हुए फ़ील्ड अपडेट नहीं किए जाएंगे. पूरी इकाई को बदलने के लिए, सभी फ़ील्ड से मैच करने के लिए, स्ट्रिंग "*" के साथ एक पाथ का इस्तेमाल करें. यह फ़ील्ड के पूरी तरह से क्वालिफ़ाइड नामों की सूची है. इसमें नामों को कॉमा लगाकर अलग किया गया है. उदाहरण: "user.displayName,photo" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Account
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Account
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["This endpoint updates an existing Google Analytics 4 account with specified changes."],["The request must include the account name in the URL path and an update mask in the query parameters defining the fields to be modified."],["You should provide the updated account details in the request body, formatted according to the `Account` object specification."],["Successful execution results in a response containing the updated `Account` object, reflecting the applied changes."],["Authorization necessitates the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for access and modification permissions."]]],["This outlines the process for updating an account via a PATCH request to `https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}`. The account's name is specified in the URL path. A `updateMask` query parameter, formatted as a FieldMask, defines which fields to update. The request body and response body use the `Account` object. The process needs `https://www.googleapis.com/auth/analytics.edit` OAuth scope. This requires gRPC Transcoding.\n"]]