We’d often want to send commands to Intune from automated workflows and pipelines, using MS Graph API , but I often get the question on how to know the exact POST or PATCH or any request.
By the way this method also works for the Azure Portal , SharePoint Online and any other Microsoft site, using Graph requests.
In Edge, go to Intune and click F12 to Open the Developer Tools:

Go to Network and you can see a bunch of Network Requests on the left side of the Dev Tools:
You can clear those with the clear button:

So let’s say that you want to create a new LAPS Policy for Windows Devices, using MS Graph API and just need the request body.
Do it in Intune, while having the Dev Tools open:
When you click on Create, you’ll immediately see the MS Graph API request in the Network Tab:
You can see the Header URL, the type of Request (in our case POST) and the Status of the Execution (200 Success)

If you go to the Payload, you’ll also see the Request Body and if you click on “View Source” , you’d be able to see the Request Body in a pure JSON format


The same goes for any other operation in Intune including Update and Delete.
Happy Graphing 🙂