Elastic Agents

Update an agent by ID

Changed on

Spaces method and path for this operation:

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

Refer to Spaces for more information.

Update an agent by ID.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

put/api/fleet/agents/{agentId}

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agents/{agentId}
  • 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

tagsstring[]
user_provided_metadataobject

Response

Successful response

Changes