Bulk reassign agents
[Required authorization] Route required privileges: fleet-agents-all.
Body
agents
array[string] | string Required -
batchSize
number -
includeInactive
boolean Default value is
false
. -
policy_id
string Required
POST
/api/fleet/agents/bulk_reassign
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/agents/bulk_reassign' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agents":["string"],"batchSize":42.0,"includeInactive":false,"policy_id":"string"}'