Forum Discussion
How to create a dependency using Graph API in PowerShell
hi,
I used following documentations to create a dependency via Graph API in Powershell:
https://learn.microsoft.com/en-us/graph/api/intune-apps-mobileappdependency-list?view=graph-rest-beta
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.beta.devices.corporatemanagement/new-mgbetadeviceappmanagementmobileapprelationship?view=graph-powershell-beta
Both ways give me the same error:
New-MgBetaDeviceAppMgtMobileAppRelationship : No OData route exists that match template ~/singleton/navigation with http verb POST for request /AppLifecycle_2602/StatelessAppMetadataFEService/deviceAppManagement/mobileAppRelationships.
Status: 400 (BadRequest)
ErrorCode: No method match route template
Seems like these Endpoints do not support POST/PATCH requests at all. Is there any other way to create a dependency using Graph API in PowerShell?
1 Reply
- Bogdan_GuineaSteel Contributor
Hi,
based on your documentation the "mobileAppRelationships" endpoint only exists as a read-only.
Take a look on this also:
Good luck!