Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_unenroll
Refer to Spaces for more information.
POST
/api/fleet/agents/bulk_unenroll
curl \
--request POST 'https://localhost:5601/api/fleet/agents/bulk_unenroll' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '"{\n \"agents\": [\n \"agent1\",\n \"agent2\"\n ],\n \"force\": false,\n \"revoke\": true\n}"'
Request example
{
"agents": [
"agent1",
"agent2"
],
"force": false,
"revoke": true
}