Method: edits.expansionfiles.patch
किसी दूसरे APK की एक्सपैंशन फ़ाइल का रेफ़रंस देने के लिए, APK की एक्सपैंशन फ़ाइल के कॉन्फ़िगरेशन में बदलाव करता है. नई एक्सपैंशन फ़ाइल जोड़ने के लिए, expansionfiles.upload तरीके का इस्तेमाल करें.
एचटीटीपी अनुरोध
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ऐप्लिकेशन का पैकेज नेम.
|
editId |
string
बदलाव का आइडेंटिफ़ायर.
|
apkVersionCode |
integer
उस APK का वर्शन कोड जिसकी एक्सपैंशन फ़ाइल का कॉन्फ़िगरेशन पढ़ा जा रहा है या जिसमें बदलाव किया जा रहा है.
|
expansionFileType |
enum (ExpansionFileType )
एक्सपैंशन फ़ाइल कॉन्फ़िगरेशन का फ़ाइल टाइप, जिसे अपडेट किया जा रहा है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में ExpansionFile
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में ExpansionFile
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidpublisher
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-17 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-17 (UTC) को अपडेट किया गया."],[[["Patches an APK's expansion file configuration to reference another APK's expansion file, allowing you to link expansion files between APKs."],["Utilizes an HTTP PATCH request with specific path parameters to identify the target application, edit, APK version, and expansion file type."],["Requires an ExpansionFile object in the request body to specify the configuration details and returns the updated ExpansionFile in the response."],["To add a new expansion file instead of patching an existing one, you should use the expansionfiles.upload method."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope for access."]]],["This API allows patching an APK's expansion file configuration to point to another APK's expansion file. The HTTP request uses `PATCH` to update at a specific URL with path parameters: `packageName`, `editId`, `apkVersionCode`, and `expansionFileType`. The request and response bodies use the `ExpansionFile` format. The process needs authorization with the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. New expansion files must be added via the `expansionfiles.upload` method.\n"]]