v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
Fleet uninstall tokens

Rotate an uninstall token

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/uninstall_tokens/{agentPolicyId}/rotate</span></div>

Refer to Spaces for more information.

Rotate the uninstall token for an agent policy. Only applicable to policies with tamper protection enabled.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/uninstall_tokens/{agentPolicyId}/rotate

Path parameters

agentPolicyIdstring required

The ID of the agent policy whose uninstall token should be rotated

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Response

Successful response

messagestring required