Create an agent action
[Required authorization] Route required privileges: fleet-agents-all.
Path parameters
-
agentId
string Required
POST
/api/fleet/agents/{agentId}/actions
curl \
--request POST 'https://localhost:5601/api/fleet/agents/{agentId}/actions' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"action":{"type":"UNENROLL"}}'