diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/components/CreateNewVersionButton.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/components/CreateNewVersionButton.jsx index dbc7f20ed1d..a99c5803291 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/components/CreateNewVersionButton.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/components/CreateNewVersionButton.jsx @@ -81,7 +81,8 @@ function CreateNewVersionButton(props) { return ( <> {/* allowing create new version based on scopes */} - <ScopeValidation resourceMethod={resourceMethod.POST} resourcePath={resourcePath.API_COPY}> + <ScopeValidation resourceMethod={resourceMethod.POST} + resourcePath={isAPIProduct ? resourcePath.API_PRODUCT_COPY : resourcePath.API_COPY}> <div className={classes.createNewVersionWrapper} id='create-new-version-btn'> <VerticalDivider height={70} /> <Link diff --git a/portals/publisher/src/main/webapp/source/src/app/data/ScopeValidation.jsx b/portals/publisher/src/main/webapp/source/src/app/data/ScopeValidation.jsx index 55dd276a7d1..0f8de514bce 100644 --- a/portals/publisher/src/main/webapp/source/src/app/data/ScopeValidation.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/data/ScopeValidation.jsx @@ -31,6 +31,7 @@ const resourcePath = { API_GW_CONFIG: '/apis/{apiId}/gateway-config', API_THUMBNAIL: '/apis/{apiId}/thumbnail', API_COPY: '/apis/copy-api', + API_PRODUCT_COPY: '/api-products/copy-api-products', API_LC_HISTORY: '/apis/{apiId}/lifecycle-history', API_CHANGE_LC: '/apis/change-lifecycle', API_LC: '/apis/{apiId}/lifecycle',