Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_reassign
Refer to Spaces for more information.
POST
/api/fleet/agents/bulk_reassign
curl \
--request POST 'https://localhost:5601/api/fleet/agents/bulk_reassign' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '"{\n \"agents\": \"fleet-agents.policy_id : (\\\"policy1\\\" or \\\"policy2\\\")\",\n \"policy_id\": \"policy_id\"\n}"'
Request example
{
"agents": "fleet-agents.policy_id : (\"policy1\" or \"policy2\")",
"policy_id": "policy_id"
}