Reassign an agent
[Required authorization] Route required privileges: ALL of [fleet-agents-all].
POST
/api/fleet/agents/{agentId}/reassign
curl \
--request POST https://localhost:5601/api/fleet/agents/{agentId}/reassign \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"policy_id":"string"}'
Request examples
# Headers
kbn-xsrf: true
# Payload
{
"policy_id": "string"
}
Response examples (200)
{}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}