Upload a CSV file to Automox. Maximum file size = 20,000 rows
Successful Operation - The response will contain a location header containing the path to the newly created action set.
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
The file you are trying to upload is too large.
Too many requests
Service Unavailable
$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
[- {
- "id": 0,
- "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": "af0daaf4-983e-4703-a7ed-a10f146d6684",
- "organization_id": 0,
- "status": "string",
- "source": {
- "name": "string",
- "type": "string"
}, - "created_by_user": {
- "id": 0,
- "firstname": "string",
- "lastname": "string",
- "email": "user@example.com"
}, - "updated_by_user": {
- "id": 0,
- "firstname": "string",
- "lastname": "string",
- "email": "user@example.com"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]