How do I log only the folder ID when the name matches?
Invoke-RestMethod returns folder objects in $response.data. I want to log the ID of each folder named Management, but my current filter logs every ID in the container. How…
Invoke-RestMethod returns folder objects in $response.data. I want to log the ID of each folder named Management, but my current filter logs every ID in the container. How…
I'm converting a curl POST to Invoke-RestMethod. The curl body is an array of objects, but my PowerShell version uses a here-string with one object piped to ConvertTo-Json.…
I'm converting a curl request to PowerShell's Invoke-RestMethod for an API endpoint that expects a JSON array of objects. The curl request sends an array like [{"key1":"value1","key2":"value2"},{"key1":"value3","key2":"value4"}]. I…
I'm using Invoke-RestMethod to retrieve folder objects from a container. Each item includes properties such as name, id, folder_type, and parent_id. I need to find the folder whose…
I use Invoke-RestMethod to retrieve folder information from a container. The response.data property contains multiple folder objects, each with properties such as name, id, folder_type, and parent_id. I…
Hey everyone, I've encountered a strange problem when using Invoke-RestMethod in my PowerShell script to call the Isolate machine API for Microsoft Defender for Endpoint. I've managed to…