Microsoft graph api 使用microsoft graph api在Intune中创建windowsMobileMSI时请求错误
我正在尝试在intune中创建windowsMobileMSI应用程序 我使用以下JSON:Microsoft graph api 使用microsoft graph api在Intune中创建windowsMobileMSI时请求错误,microsoft-graph-api,intune,Microsoft Graph Api,Intune,我正在尝试在intune中创建windowsMobileMSI应用程序 我使用以下JSON: { "@odata.type": "#microsoft.graph.windowsMobileMSI", "displayName": "API uploaded Package", "description": "Desc of Api uploaded pkg", "publisher": "publisher 1", "isFeatured":
{
"@odata.type": "#microsoft.graph.windowsMobileMSI",
"displayName": "API uploaded Package",
"description": "Desc of Api uploaded pkg",
"publisher": "publisher 1",
"isFeatured": false,
"privacyInformationUrl": "",
"informationUrl": null,
"owner": "owner 1",
"developer": "dev 1",
"notes": "no notes",
//File info
"committedContentVersion": "1",
"fileName": "PackageProvider.msi",
"size": 409664,
"identityVersion": "1.0.8",
"commandLine": "",
"productCode": "{cc12adbd-8692-458d-b186-9d83b639ff1d}",
"productVersion": "1.0.8",
"ignoreVersionDetection": false
}
但是当我把它贴到
POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps
我收到了错误信息
{
"error": {
"code": "BadRequest",
"message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: fd5ee560-f4da-4255-b893-aa133c60fe4b - Url: https://fef.amsub0102.manage.microsoft.com/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5017-10-18 - CustomApiErrorPhrase: ",
"innerError": {
"request-id": "fd5ee560-f4da-4255-b893-aa133c60fe4b",
"date": "2017-12-22T08:31:35"
}
}
}
我从现有的windowsMobileMSI应用程序中获取“//File info”注释下面的行。
我试着去掉这些线,但没用
有人能告诉我我的JSON有什么问题吗?尝试从JSON中删除“size”:409664 我得到一个建议,只在//文件信息之后使用“identityVersion”。 下面是JSON,它现在可以工作了:
{
"@odata.type": "#microsoft.graph.windowsMobileMSI",
"displayName": "API uploaded Package",
"description": "Desc of Api uploaded pkg",
"publisher": "publisher 1",
"isFeatured": false,
"privacyInformationUrl": "",
"informationUrl": null,
"owner": "owner 1",
"developer": "dev 1",
"notes": "no notes",
//File info
"identityVersion": "1.0.8",
}