Upload a CSV file to Automox

Upload a CSV file to Automox. Maximum file size = 20,000 rows

Request
Security:
path Parameters
orgID
required
integer

The organization ID of the target organization.

type
required
string
Default: "patch"

The type of Task to create.

Value: "patch"
Request Body schema: multipart/form-data
file
required
string
format
required
string
Default: "CrowdStrike"
Enum: "CrowdStrike" "Rapid7" "TenableIO" "Generic Report" "Qualys"
Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

413

The file you are trying to upload is too large.

429

Too many requests

503

Service Unavailable

post/orgs/{orgID}/tasks/{type}/batches/upload
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{
  "Authorization" = "Bearer $apiKey"
}
$url = "https://console.automox.com/api/orgs/:orgID/tasks/:type/batches/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
Response samples
application/json
[
  • {
    • "id": 0,
    • "organization_id": 0,
    • "status": "processing",
    • "source": "string",
    • "created_by": {
      • "id": 0,
      • "firstname": "string",
      • "lastname": "string",
      • "email": "string"
      },
    • "updated_by": {
      • "id": 0,
      • "firstname": "string",
      • "lastname": "string",
      • "email": "string"
      },
    • "uploaded_at": "2019-08-24T14:15:22Z",
    • "task_count": 0,
    • "unknown_host_count": 0,
    • "impacted_device_count": 0,
    • "issue_count": 0,
    • "cve_count": 0
    }
]