Method: accounts.dataSources.patch
मौजूदा डेटा सोर्स कॉन्फ़िगरेशन को अपडेट करता है. अपडेट मास्क में सेट किए गए, लेकिन संसाधन में मौजूद नहीं होने वाले फ़ील्ड मिटा दिए जाएंगे.
एचटीटीपी अनुरोध
PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
dataSource.name |
string
आइडेंटिफ़ायर. डेटा सोर्स का नाम. फ़ॉर्मैट: {datasource.name=accounts/{account}/dataSources/{datasource}}
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
ज़रूरी है. अपडेट किए जाने वाले डेटा सोर्स फ़ील्ड की सूची. अपडेट मास्क में बताए गए ऐसे फ़ील्ड जिन्हें बॉडी में वैल्यू के बिना अपडेट किया गया है उन्हें डेटा सोर्स से मिटा दिया जाएगा. पूरे डेटा सोर्स को बदलने के लिए, खास "*" वैल्यू नहीं दी जा सकती.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में DataSource
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में DataSource
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/content
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-01-23 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-01-23 (UTC) को अपडेट किया गया."],[[["This documentation outlines how to update an existing data source configuration using a PATCH request."],["The request should target the specific data source using its unique identifier in the path."],["An `updateMask` query parameter is required to specify the fields to be updated or deleted."],["The request body must contain the updated `DataSource` object, adhering to the provided schema."],["Successful requests will return the updated `DataSource` object in the response."]]],["This describes updating an existing data source configuration via a `PATCH` request to a specific URL: `https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}`. The `dataSource.name` is a required path parameter. The `updateMask` query parameter specifies fields for update or deletion. The request body contains `DataSource` details for the update. A successful response also returns a `DataSource` instance. The operation requires the `https://www.googleapis.com/auth/content` authorization scope.\n"]]