Upgrade agent

POST /api/fleet/agents/{agentId}/upgrade

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/agents/{agentId}/upgrade

Refer to Spaces for more information.

Headers

  • kbn-xsrf string Required

    Kibana's anti Cross-Site Request Forgery token. Can be any string value.

Path parameters

  • agentId string Required
application/json

Body Required

  • force boolean

    Force upgrade, skipping validation (should be used with caution)

  • skipRateLimitCheck boolean

    Skip rate limit check for upgrade

  • source_uri string
  • version string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • force boolean

      Force upgrade, skipping validation (should be used with caution)

    • skipRateLimitCheck boolean

      Skip rate limit check for upgrade

    • source_uri string
    • version string Required
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/agents/{agentId}/upgrade
curl \
 --request POST 'https://localhost:5601/api/fleet/agents/{agentId}/upgrade' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: string" \
 --data '{"force":true,"skipRateLimitCheck":true,"source_uri":"string","version":"string"}'