diff --git a/x-pack/plugins/fleet/common/constants/routes.ts b/x-pack/plugins/fleet/common/constants/routes.ts index 9be196cb12dae..a583f38419ae1 100644 --- a/x-pack/plugins/fleet/common/constants/routes.ts +++ b/x-pack/plugins/fleet/common/constants/routes.ts @@ -29,7 +29,7 @@ export const EPM_API_ROUTES = { DELETE_PATTERN: EPM_PACKAGES_ONE, FILEPATH_PATTERN: `${EPM_PACKAGES_FILE}/{filePath*}`, CATEGORIES_PATTERN: `${EPM_API_ROOT}/categories`, - SUMMARY_PATTERN: `${EPM_PACKAGES_MANY}/{pkgName}/summary`, + STATS_PATTERN: `${EPM_PACKAGES_MANY}/{pkgName}/stats`, }; // Data stream API routes diff --git a/x-pack/plugins/fleet/common/services/routes.ts b/x-pack/plugins/fleet/common/services/routes.ts index 58f3d1a22252d..6286461c18519 100644 --- a/x-pack/plugins/fleet/common/services/routes.ts +++ b/x-pack/plugins/fleet/common/services/routes.ts @@ -36,7 +36,7 @@ export const epmRouteService = { }, getSummaryPath: (pkgName: string) => { - return EPM_API_ROUTES.SUMMARY_PATTERN.replace('{pkgName}', pkgName); + return EPM_API_ROUTES.STATS_PATTERN.replace('{pkgName}', pkgName); }, getFilePath: (filePath: string) => { diff --git a/x-pack/plugins/fleet/server/routes/epm/index.ts b/x-pack/plugins/fleet/server/routes/epm/index.ts index 84ddc4e5a32ee..de38491349df4 100644 --- a/x-pack/plugins/fleet/server/routes/epm/index.ts +++ b/x-pack/plugins/fleet/server/routes/epm/index.ts @@ -61,7 +61,7 @@ export const registerRoutes = (router: IRouter) => { router.get( { - path: EPM_API_ROUTES.SUMMARY_PATTERN, + path: EPM_API_ROUTES.STATS_PATTERN, validate: GetSummaryRequestSchema, options: { tags: [`access:${PLUGIN_ID}`] }, },