Hi All,
want to see what I’m doing wrong here… trying to follow the example here https://developer.automox.com/openapi/axconsole/operation/issueDeviceCommand/, to issue a command to a server so it can remediate itself, I want to do it one server at a time so it doesn’t take everyone down at once… I’m trying to use the command type “policy_{policy_id}_remediate”
so here is how I’m calling it through curl
curl -X POST
‘https://console.automox.com/api/servers/{server_id}/queues?o={org_id}’
-H ‘Authorization: Bearer {api_key}’
-H ‘Content-Type: application/json’
-d '{
“command_type_name”: “policy_{policy_id}_remediate”
}’
I keep getting a {“errors”:[“The selected command type name is invalid.”]} error message…
am I calling it right? or is that for something else?
thanks,
Alan