Elastic Agent policies
Update an agent policy
Spaces method and path for this operation:
<div><span class="operation-verb put">put</span> <span class="operation-path">/s/{space_id}/api/fleet/agent_policies/{agentPolicyId}</span></div>Refer to Spaces for more information.
Update an agent policy by ID.<br/><br/>[Required authorization] Route required privileges: fleet-agent-policies-all.
put/api/fleet/agent_policies/{agentPolicyId}
Path parameters
agentPolicyIdstring required
The ID of the agent policy
Query parameters
format'simplified' | 'legacy'
Format for the response: simplified or legacy
Headers
kbn-xsrfstring required
Example:true
A required header to protect against CSRF attacks
Request body
Response
Successful response