Upload installation file to a Required Software policy.

Upload file to a Required Software policy.

Request
Security:
path Parameters
id
required
integer

The policy ID for the target policy.

Request Body schema: multipart/form-data
file
required
string <binary>
Responses
201

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

post/policies/{id}/files
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{
  "Authorization" = "Bearer $apiKey"
  "Content-Type" = "multipart/form-data"
}
$url = "https://console.automox.com/api/policies/{id}/files"
$form = @{
  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
{
  • "errors": [
    • "Validation Error"
    ]
}