Tech Accelerator: Microsoft Intune Suite
Apr 11 2023 08:00 AM - Apr 12 2023 11:00 AM (PDT)

Update Intune Managed Device Category with Microsoft Graph were Failed

Occasional Contributor

I'd failed to update the managed device category in Intune with Microsoft Graph. With the same code, I'd succeeded to update device owner. Parameter below:


Method: PUT

Failed request body:

{ "deviceCategoryDisplayName": "General Purpose" }


Succeeded request body:

{ "Owner": "Personal" }


"General Purpose" is a custom value. When failed, the server returns an error code and activity id.

How can I fix it?


Thank you.

4 Replies



you have to create the category first in Intune before you can assign it to a device:



otherwise you are not seeing it and assignment is not allowed:


I think this constrained is the same when doing it via graph.



best response confirmed by Nayuta (Occasional Contributor)

In addition to what Oliver said, here's how if you want to do it through Graph API:

1.  Create the category

Request URL :

Request Method: POST

Request Payload: {displayName: "testCategory(displayNameOfCategory)"}


Sample response:







Or Get categories if created already

Request URL :

Request Method: GET


Sample response:





2. Set the category for device

Request URL:'22222222-2222-2222-2222-2222222222...

Request Method: PUT

Request Payload: {""}


Sample response: 204


Thank you. But, I want to update with Microsoft Graph API (:

Hi @wazha,


I'vd done it! Thank you so much!