Reassign an agent
Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/{agentId}/reassign
Refer to Spaces for more information.
[Required authorization] Route required privileges: fleet-agents-all.
POST /api/fleet/agents/{agentId}/reassign
curl \ --request POST 'https://localhost:5601/api/fleet/agents/{agentId}/reassign' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: true" \ --data '{"policy_id":"string"}'