संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी डिवाइस पर ऐप्लिकेशन का नया वर्शन इंस्टॉल करने के अनुरोध. अगर ऐप्लिकेशन
पहले से इंस्टॉल है, तो उसका सबसे नया वर्शन अपडेट हो जाता है, अगर
ज़रूरी है.
अनुरोध
एचटीटीपी अनुरोध
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId/installs/installId
पैरामीटर
पैरामीटर का नाम
मान
ब्यौरा
पाथ पैरामीटर
deviceId
string
डिवाइस का Android आईडी.
enterpriseId
string
एंटरप्राइज़ का आईडी.
installId
string
उस प्रॉडक्ट का आईडी जिसे इंस्टॉल किया गया है, जैसे कि
"app:com.google.android.gm".
userId
string
उपयोगकर्ता का आईडी.
अनुमति देना
इस अनुरोध के लिए, नीचे दिए गए स्कोप वाले अनुमति की ज़रूरत है:
[null,null,["आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis method, which will be inaccessible after September 30, 2025, requests the installation or update of an app to the latest version on a device.\u003c/p\u003e\n"],["\u003cp\u003eIt requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope and utilizes specific path parameters like \u003ccode\u003edeviceId\u003c/code\u003e, \u003ccode\u003eenterpriseId\u003c/code\u003e, \u003ccode\u003einstallId\u003c/code\u003e, and \u003ccode\u003euserId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eNew integrations are advised to refer to updated recommendations as this method is deprecated.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, an \u003ccode\u003eInstalls resource\u003c/code\u003e is returned in the response body.\u003c/p\u003e\n"]]],[],null,["# Installs: update\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative_3). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nRequests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId/installs/installId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|-------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `deviceId` | `string` | The Android ID of the device. |\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `installId` | `string` | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\". |\n| `userId` | `string` | The ID of the user. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply an [Installs resource](/android/work/play/emm-api/v1/installs#resource).\n\nResponse\n--------\n\nIf successful, this method returns an [Installs resource](/android/work/play/emm-api/v1/installs#resource) in the response body."]]