Error Creating Supersedence Relationship wtih Beta endpoint

Edan Bash 25 Reputation points
2024-03-25T18:33:00.28+00:00

Hello,

I am trying to create a supersedence relationship between two Win32 apps using the Microsoft Graph API Beta endpoint, but I keep getting an error that the route was not found.

Am I doing something wrong with my request, or is this feature not working internally?

I am following this documentation: https://learn.microsoft.com/en-us/graph/api/intune-apps-mobileappsupersedence-create?view=graph-rest-beta

Here is my request:

POST 

{
    "targetType": "child",
    "supersedenceType": "replace",
    "targetId": "90f13d64-ae40-480f-9612-80f3c179ae42",
    "@odata.type": "#microsoft.graph.mobileAppSupersedence"
}

Here is my response:

"message": "No OData route exists that match template ~/singleton/navigation/key/navigation with http verb POST for request /AppLifecycle_2403/StatelessAppMetadataFEService/deviceAppManagement/mobileApps('c61d4d85-ed53-4ef8-808e-1b26100459e2')/relationships.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,743 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 46,271 Reputation points Microsoft Vendor
    2024-03-26T02:18:02.05+00:00

    @Edan Bash, Thanks for posting in Q&A. After capturing the F12 log when add supersedence relationship in Win32 app. I find it uses UpdateRelationships action to update supersedence

    User's image

    POST

    https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/c24ef1b7-7f84-4976-869c-1cdae0b32983/updateRelationships

    Request Body

    {
        "relationships": [
            {
                "@odata.type": "#microsoft.graph.mobileAppSupersedence",
                "targetId": "727843a3-c2b0-4ff4-8e73-a5190e830f52",
                "supersedenceType": "update"
            }
        ]
    }
    

    You can try this method to see if it works. Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful