Create an agent action
Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/{agentId}/actions
Refer to Spaces for more information.
[Required authorization] Route required privileges: fleet-agents-all.
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"}}'