Upload a CSV file to Automox. Maximum file size = 20,000 rows See Using Global API Keys for more information on permission and scope requirements.
Upload action set file with format specification
Successful Operation - The response will contain a location header containing the path to the newly created action set.
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/orgs/{orgID}/remediations/action-sets/upload" $form = @{ "format" = "<your desired format goes here>" "file" = Get-Item -Path '<the path to your file goes here>' } $response = (Invoke-WebRequest -Method Post -Uri $url -Headers $headers -Form $form).Content
{- "summary": "Action set example",
- "description": "Example of an action set containing vulnerability remediation statistics and configuration details",
- "value": {
- "id": 123456,
- "statistics": {
- "issues": {
- "unknown-host": {
- "count": 0
}
}, - "solutions": {
- "patch-now": {
- "count": 0,
- "device_count": 0,
- "vulnerability_count": 0
}, - "patch-with-worklet": {
- "count": 0,
- "device_count": 0,
- "vulnerability_count": 0
}
}, - "configuration_id": "1ee24da5-654d-6464-bb90-4b1496b4b3a0",
- "organization_id": 1191100,
- "status": "ready",
- "source": {
- "name": "AVR Testing Config",
- "type": "Rapid7"
}, - "created_by_user": {
- "id": 901250,
- "firstname": "Jane",
- "lastname": "Doe",
- "email": "jane.doe@example.com"
}, - "updated_by_user": {
- "id": 901250,
- "firstname": "Jane",
- "lastname": "Doe",
- "email": "jane.doe@example.com"
}, - "created_at": "2023-07-27T10:00:53+0000",
- "updated_at": "2023-07-27T10:02:52+0000"
}
}
}