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