How can I use @odata.context when returning data from Invoke-MSGraphRequest in Powershell

Copper Contributor


@{@odata.context=$metadata#deviceManagement/managedDevices(id,imei,operatingSystem,ownerType,managedDeviceOwnerType); @odata.count=1000; @odata.nextLink=$skiptoken=LastDeviceName%3d%27LP20-0321MKD%27%2cLastDeviceId%3d%27a1915a8b-6632-46d2-90ec-5bb446ff324c%27; value=System.Object[]}


My output returns a whole mess of this, but I can convert the query to JSON no problem. Is there any way I can use this @odata.context to update or runa PATCH query with graph?

0 Replies