Schedule a Policy for Immediate Remediation

Schedule a policy for immediate remediation.

Request
Security:
path Parameters
id
required
integer

Policy ID for the specified policy

query Parameters
o
required
integer

Organization ID for the specified policy

action
required
string

Specify the action to be taken. Possible values: remediateAll, remediateServer Format: action=remediateServer

Enum: "remediateAll" "remediateServer"
serverId
integer

Specify the specific Server to run the policy for. Only applicable when action is set to "remediateServer" Format: serverId=123456

Responses
201

Action Started Successfully

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

post/policies/{id}/action
Request samples
$apiKey = 'your_automox_api_key'

$headers = @{ "Authorization" = "Bearer $apiKey" }

$url = "https://console.automox.com/api/policies/12345/action?o=0000&action=remediateServer&serverId=123456"


Invoke-WebRequest -Method POST -Uri $url -Headers $headers
Response samples
application/json
{
  • "errors": [
    • "Validation Error"
    ]
}