Upgrade a package policy
- Base URL
-
https://{kibana_url}
- POST /api/fleet/package_policies/upgrade
- POST /s/{space_id}/api/fleet/package_policies/upgrade
Upgrade a package policy to a newer package version. When some package policies are upgraded and the others are only blocked because some active agents don't satisfy the package's agent version condition, the response is a 200 with a result per package policy: check each item's success field. When any other upgrade fails, the response is the first such failure. When none succeeds and every failure is an agent version block, the response is the first block.
Required privileges
fleet-agent-policies-all
and
integrations-all
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Request body
-
acknowledge_agent_version_incompatibilityboolean -
When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The
forceflag does not bypass this check.
Responses
Successful response