Spaces method and path for this operation:
Refer to Spaces for more information.
Deprecated. Use POST /api/fleet/managed_integrations/_upgrade instead. Upgrade multiple managed integrations to their installed package version, migrating each package policy's config onto the new schema. Always returns 200 with a per-policy result array; a missing id, or an id that is not a managed integration, is reported as a per-item failure (success: false + statusCode) without failing the batch, so valid ids are still upgraded. A successful result means the policy's saved object was upgraded, while the agentless deployment is reconciled asynchronously in the background. Policies already at the installed version are a genuine no-op: they still report success: true (calls stay idempotent) but nothing is re-persisted or redeployed. Note: agent-policy-level agentless settings (resources, ownership tags) are not re-derived from the new package version — use the update (PUT) endpoint for those.
curl \
--request POST 'https://localhost:5601/api/fleet/agentless_policies/_upgrade' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '"{\n \"policyIds\": [\n \"d52a7812-5736-4fdc-aed8-72152afa1ffa\",\n \"aws-policy-12345\"\n ]\n}"'
{
"policyIds": [
"d52a7812-5736-4fdc-aed8-72152afa1ffa",
"aws-policy-12345"
]
}
[
{
"id": "d52a7812-5736-4fdc-aed8-72152afa1ffa",
"name": "ess_billing-1",
"success": true
},
{
"body": {
"message": "Agentless policy aws-policy-12345 not found"
},
"id": "aws-policy-12345",
"statusCode": 404,
"success": false
}
]
[
{
"id": "d52a7812-5736-4fdc-aed8-72152afa1ffa",
"name": "ess_billing-1",
"success": true
},
{
"id": "aws-policy-12345",
"name": "cspm-aws-policy",
"success": true
}
]
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}