Downloads the CSV for a completed Data Extract job. Triggers an automatic download of the CSV file.
Downloads the extract file automatically.
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Returned when the extract download is no longer available.
Too many requests
Service Unavailable
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = 'https://console.automox.com/api/data-extracts/000/download?o=0000' Invoke-WebRequest -Method Get -Uri $url -Headers $headers -ContentType "application/octet-stream" -OutFile "$env:userprofile\Downloads\patch-history_report.csv"
{}