Graph API "BadRequest", "message": "Resource not found for the segment 'deviceUpdateStates'."

Scarecrow 0 Reputation points
2023-08-02T07:55:29.3266667+00:00

Hello everyone,

We're always using this query to receive some specific update statuses from our Intune managed device:

GET /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsUpdateForBusinessConfiguration/deviceUpdateStates

However, seems like it's not working anymore. The documents or changelogs don't mention anything about the functionality being removed or moved.

The error goes like: "code": "BadRequest", "message": "Resource not found for the segment 'deviceUpdateStates'.",

This is the link to the document, which I believe I've done everything right: https://learn.microsoft.com/en-us/graph/api/intune-shared-windowsupdatestate-list?view=graph-rest-beta

Could anyone help me with this?

Thanks.

Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. msft-gu 1,355 Reputation points
    2023-08-02T22:27:41.3066667+00:00

    Hi @Scarecrow

    Good afternoon and thank you for your question. First, please make sure that you have the following:

    Although, on my end, I tried to reproduce your concern by using the same endpoint and I encountered the same issue.

    GET /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsUpdateForBusinessConfiguration/deviceUpdateStates

    "error": {
    	"code": "BadRequest",
    	"message": "Resource not found for the segment 'deviceUpdateStates'.",
    	"innerError": {
    		"date": "...",
    		"request-id": "...",
    		"client-request-id": "..."
    }
    }
    
    

    And just testing it further, I also tried to use:

    GET /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsUpdateForBusinessConfiguration/

    "error": {
    	"code": "No method match route template",
    	"message": "No OData route exists that match template ~/singleton/navigation/key/cast with http verb GET for request /DeviceConfiguration_2307/StatelessDeviceConfigurationFEService/deviceManagement/deviceConfiguration('1111xxxx-22xx-33xx-44xx-555555xxxxxx')/microsoft.management.services.api.windowsUpdateForBusinessConfiguration.",
    	"innerError": {
    		"date": "...",
    		"request-id": "...",
    		"client-request-id: "..."
    
    
    

    I highly suggest creating a ticket for this concern because:

    • the endpoint is under beta which has limited support
    • the documentation was last update 01/11/23
    • for us to clarify internally if there is any progress or update on this endpoint.

    If I answered your question, please upvote and accept it as an answer. Thank you and have a great day ahead.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.