Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/{agentId}/actions
Refer to Spaces for more information.
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: string" \
--data '{
"action": {
"ack_data": "string",
"data": "string",
"type": "UNENROLL"
}
}'