Upgrade a package policy
Upgrade a package policy to a newer package version.
[Required authorization] Route required privileges: ALL of [fleet-agent-policies-all, integrations-all].
POST
/api/fleet/package_policies/upgrade
curl \
--request POST https://localhost:5601/api/fleet/package_policies/upgrade \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"packagePolicyIds":["string"]}'
Request examples
# Headers
kbn-xsrf: true
# Payload
{
"packagePolicyIds": [
"string"
]
}
Response examples (200)
[
{
"body": {
"message": "string"
},
"id": "string",
"name": "string",
"statusCode": 42.0,
"success": true
}
]
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}