Graph API Bad Request No OData route exists that match template

Boyd, Nathan 1 Reputation point
2022-04-21T15:51:56.07+00:00

I am trying to use graph api to update an app in intune. i can add an LOB ios app fine (yet to try android).

i'm using PATCH.

uri: https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/-intentionally-shortened-1f79/microsoft.graph.mobileLobApp/contentVersions/14/files/intentionally-shortened-560895dd73da

request body:

{
"uploadState": "success",
"id": "intentionally-shortened-560895dd73da(not sure this is necessary)",
"@odata.type": "#microsoft.graph.mobileAppContentFile",
"azureStorageUriExpirationDateTime": "2022-04-21T15:43:41.983834Z",
"size": 19965,
"isCommitted": true,
"azureStorageUri": "https://mmcswda01.blob.core.windows.net/shortened-1ddbdc9560a0/shortened-5df3056d689d/shortened-ba-4bdf-890c-560895dd73da.ipa.bin",
"name": "my.ipa",
"manifest": "intentionally-shortened-GlzdD4=",
"sizeEncrypted": 20016
}

i am getting the error below:
{
"error": {
"code": "No method match route template",
"message": "No OData route exists that match template ~/singleton/navigation/key/cast/navigation/key/navigation/key with http verb PATCH for request /AppLifecycle_2204/StatelessAppMetadataFEService/deviceAppManagement/mobileApps('shortened-8fb3-0269a6de1f79')/microsoft.management.services.api.mobileLobApp/contentVersions('14')/files('shortened-4bdf-890c-560895dd73da').",
"innerError": {
"date": "2022-04-21T15:41:49",
"request-id": "afa64b40-390c-4610-af15-abf02f16e9ce",
"client-request-id": "b7f14881-a4fa-b8c6-dc9e-4d765f942de2"
}
}
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,353 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,714 questions
{count} votes