我希望完全通过Microsoft Graph API更新Intune移动应用程序。我在下面的链接中找到了一个create mobileAppContentFile端点。
https://docs.microsoft.com/en-us/graph/api/intune-apps-mobileappcontentfile-create?view=graph-rest-1.0
不幸的是,通过此处发出任何请求时,出现以下错误(请注意,我在身份验证方面没有任何问题,并且启用了所有权限):
{'error': {'code': 'BadRequest',
'innerError': {'date': '2019-06-20T15:02:26',
'request-id': 'ebaf8f00-11ee-4493-9051-0fd7ca7e02a5'},
'message': "Resource not found for the segment 'contentVersions'."}
我也尝试使用端点:
/deviceAppManagement/mobileApps/{mobileAppId}/microsoft.graph.managedMobileLobApp/contentVersions/{mobileAppContentId}/files
随身:
{
"@odata.type": "#microsoft.graph.mobileAppContentFile",
"azureStorageUri": <uri here>
}
哪个回复:
{
'innerError': {'date': '2019-06-20T15:05:21',
'request-id': 'cfe029f0-dd8b-40ac-ab12-a572dd1aace0'},
'message': 'No OData route exists that match template '
'~/singleton/navigation/key/cast/navigation/key/navigation '
'with http verb POST for request '
"/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps('cd508e09-0076-4c5c-96f8-71c617128580')/$/microsoft.management.services.api.managedMobileLobApp/contentVersions('2')/files."}
}