更新 androidStoreAppUpdate androidStoreApp
2020/9/22
本文内容
命名空间:microsoft.graphNamespace: microsoft.graph
注意: 适用于 Intune 的 Microsoft Graph API 需要适用于租户的活动 Intune 许可证。Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a androidStoreApp object.
先决条件Prerequisites
要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限。One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
权限类型Permission type
权限(从最高特权到最低特权)Permissions (from most to least privileged)
委派(工作或学校帐户)Delegated (work or school account)
DeviceManagementApps.ReadWrite.AllDeviceManagementApps.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account)
不支持。Not supported.
应用程序Application
不支持。Not supported.
HTTP 请求HTTP Request
PATCH /deviceAppManagement/mobileApps/{mobileAppId}
请求标头Request headers
标头Header
值Value
AuthorizationAuthorization
Bearer 。必需。Bearer Required.
接受Accept
application/jsonapplication/json
请求正文Request body
在请求正文中,提供 androidStoreApp 对象的 JSON 表示形式。In the request body, supply a JSON representation for the androidStoreApp object.
The following table shows the properties that are required when you create the androidStoreApp.
属性Property
类型Type
说明Description
idid
StringString
实体的键。Key of the entity. Inherited from mobileApp
displayNamedisplayName
StringString
管理员提供或导入的应用标题。The admin provided or imported title of the app. Inherited from mobileApp
descriptiondescription
StringString
应用的说明。The description of the app. Inherited from mobileApp
publisherpublisher
StringString
应用的发布者。The publisher of the app. Inherited from mobileApp
largeIconlargeIcon
要显示在应用详细信息中并用于图标上传的大图标。The large icon, to be displayed in the app details and used for upload of the icon. Inherited from mobileApp
createdDateTimecreatedDateTime
DateTimeOffsetDateTimeOffset
创建应用的日期和时间。The date and time the app was created. Inherited from mobileApp
lastModifiedDateTimelastModifiedDateTime
DateTimeOffsetDateTimeOffset
上次修改应用的日期和时间。The date and time the app was last modified. Inherited from mobileApp
isFeaturedisFeatured
BooleanBoolean
指示应用是否被管理员标记为特色的值。继承自 mobileAppThe value indicating whether the app is marked as featured by the admin. Inherited from mobileApp
privacyInformationUrlprivacyInformationUrl
StringString
隐私声明 URL。The privacy statement Url. Inherited from mobileApp
informationUrlinformationUrl
StringString
详细信息 URL。The more information Url. Inherited from mobileApp
所有者owner
StringString
应用的所有者。The owner of the app. Inherited from mobileApp
developerdeveloper
StringString
应用的开发者。The developer of the app. Inherited from mobileApp
notesnotes
StringString
应用的备注。Notes for the app. Inherited from mobileApp
publishingStatepublishingState
应用的发布状态。The publishing state for the app. 除非应用已发布,否则无法分配应用。The app cannot be assigned unless the app is published. Inherited from mobileApp. 可取值为:notPublished、processing、published。Possible values are: notPublished, processing, published.
packageIdpackageId
StringString
包标识符。The package identifier.
appStoreUrlappStoreUrl
StringString
Android 应用商店 URL。The Android app store URL.
minimumSupportedOperatingSystemminimumSupportedOperatingSystem
最低适用操作系统的值。The value for the minimum applicable operating system.
响应Response
如果成功,此方法会在响应正文中返回 200 OK 响应代码和更新的 androidStoreApp 对象。If successful, this method returns a 200 OK response code and an updated androidStoreApp object in the response body.
示例Example
请求Request
下面是一个请求示例。Here is an example of the request.
PATCH https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/{mobileAppId}
Content-type: application/json
Content-length: 938
{
"@odata.type": "#microsoft.graph.androidStoreApp",
"displayName": "Display Name value",
"description": "Description value",
"publisher": "Publisher value",
"largeIcon": {
"@odata.type": "microsoft.graph.mimeContent",
"type": "Type value",
"value": "dmFsdWU="
},
"isFeatured": true,
"privacyInformationUrl": "https://example.com/privacyInformationUrl/",
"informationUrl": "https://example.com/informationUrl/",
"owner": "Owner value",
"developer": "Developer value",
"notes": "Notes value",
"publishingState": "processing",
"packageId": "Package Id value",
"appStoreUrl": "https://example.com/appStoreUrl/",
"minimumSupportedOperatingSystem": {
"@odata.type": "microsoft.graph.androidMinimumOperatingSystem",
"v4_0": true,
"v4_0_3": true,
"v4_1": true,
"v4_2": true,
"v4_3": true,
"v4_4": true,
"v5_0": true,
"v5_1": true
}
}
响应Response
下面是一个响应示例。注意:为了简单起见,可能会将此处所示的响应对象截断。将从实际调用中返回所有属性。Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1110
{
"@odata.type": "#microsoft.graph.androidStoreApp",
"id": "1f2b7654-7654-1f2b-5476-2b1f54762b1f",
"displayName": "Display Name value",
"description": "Description value",
"publisher": "Publisher value",
"largeIcon": {
"@odata.type": "microsoft.graph.mimeContent",
"type": "Type value",
"value": "dmFsdWU="
},
"createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"isFeatured": true,
"privacyInformationUrl": "https://example.com/privacyInformationUrl/",
"informationUrl": "https://example.com/informationUrl/",
"owner": "Owner value",
"developer": "Developer value",
"notes": "Notes value",
"publishingState": "processing",
"packageId": "Package Id value",
"appStoreUrl": "https://example.com/appStoreUrl/",
"minimumSupportedOperatingSystem": {
"@odata.type": "microsoft.graph.androidMinimumOperatingSystem",
"v4_0": true,
"v4_0_3": true,
"v4_1": true,
"v4_2": true,
"v4_3": true,
"v4_4": true,
"v5_0": true,
"v5_1": true
}
}