Reassign an agent
[Required authorization] Route required privileges: ALL of [fleet-agents-all].
Path parameters
-
agentId
string Required
POST
/api/fleet/agents/{agentId}/reassign
curl \
--request POST 'http://localhost:5622/api/fleet/agents/{agentId}/reassign' \
--header "Authorization: $API_KEY" \
--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
}