Elastic Agent actions

Upgrade an agent

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agents/{agentId}/upgrade</span></div>

Refer to Spaces for more information.

Upgrade a specific agent to a newer version.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

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

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agents/{agentId}/upgrade
  • Auth
    • API key in header Authorization
    • or HTTP basic

Path parameters

agentIdstring required

The agent ID

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

forceboolean
skipRateLimitCheckboolean
source_uristring
versionstring required

Response

Successful response

object required

Changes

No operation changes recorded.