文档 https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_mam_iosmanagedappregistration_create表示应该可以使用POST https://graph.microsoft.com/v1.0/deviceAppManagement/managedAppRegistrations创建iOS托管应用注册。对记录的行为的任何排列都会产生以下响应:
{
"error": {
"code": "No method match route template",
"message": "No OData route exists that match template ~/singleton/navigation with http verb POST for request /MAMAdmin/MAMAdminFEService/deviceAppManagement/managedAppRegistrations.",
"innerError": {
"request-id": "9338f5e5-bdb8-49f2-a887-362ddca6da97",
"date": "2018-03-13T01:23:02"
}
}
}
这似乎表明POST缺少路线 - 是否有人成功使用此API创建托管应用注册?
我在输入上尝试了几种变体,包括删除其他帖子中提到的odata类型说明符。下面是一个可以使用图形浏览器重现的失败请求的示例 - 请注意,在尝试与API集成的应用程序中使用实际值时,我会收到相同的错误:
POST https://graph.microsoft.com/v1.0/deviceAppManagement/managedAppRegistrations
{
"@odata.type": "#microsoft.graph.iosManagedAppRegistration",
"lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
"applicationVersion": "Application Version value",
"managementSdkVersion": "Management Sdk Version value",
"platformVersion": "Platform Version value",
"deviceType": "Device Type value",
"deviceTag": "Device Tag value",
"deviceName": "Device Name value",
"flaggedReasons": [
"rootedDevice"
],
"userId": "User Id value",
"appIdentifier": {
"@odata.type": "microsoft.graph.iosMobileAppIdentifier",
"bundleId": "Bundle Id value"
},
"version": "Version value"
}
答案 0 :(得分:0)
这是文档错误。 〜/ managedAppRegistrations是一个只读集合。当MAM开明的应用程序向Microsoft Intune注册时,将创建这些实体。
此致 来自MSFT的Alemeshet Alemu