Spaces method and path for this operation:
put /s/{space_id}/api/fleet/epm/packages/{pkgName}
Refer to Spaces for more information.
Update settings for a package, such as whether policies are kept up to date automatically.
[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.
PUT
/api/fleet/epm/packages/{pkgName}
curl \
--request PUT 'https://localhost:5601/api/fleet/epm/packages/{pkgName}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"namespace_customization_enabled_for":["production","staging"]}'
Request examples
Put update package namespace customization example
Enable namespace-level customization for the `production` and `staging` namespaces
{
"namespace_customization_enabled_for": [
"production",
"staging"
]
}
Update keep_policies_up_to_date setting for a package
{
"keepPoliciesUpToDate": true
}
Response examples (200)
Updated package settings
{
"item": {
"keepPoliciesUpToDate": true,
"name": "aws",
"version": "2.10.0"
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}