Modify API Groups
If your business requirements change, you might want to modify an API Group by adding new API instances to it. To cover new scenarios, you might want to add a new API instance.
You can also version an existing instance to add customizations. If a service is no longer required, you can remove the respective API instance that supports the service. However, modifying API Groups and API Group instances involves specific restrictions.
When you publish an API Group in Exchange, the status of the API Group changes based on specific scenarios.
Restrictions for Modifying API Group and Instances
Before you modify an API Group, ensure that you carefully review the restrictions:
-
Add new instances of APIs that already exist in the group only if the API Group instance has no contracts.
-
Add only API instances that belong to the same identity provider (IdP).
You cannot mix IdPs in an API Group instance.
-
Add API instances but not APIs if:
-
The API Group instance is published.
-
The API Group version is published.
-
The API Group version has multiple API Group instances.
-
Exchange Status Based on API Group Transactions
The Exchange status of an API Group depends on these conditions:
-
If your API Group is published in Exchange, your Exchange asset displays the new API instance.
-
If the API instance you added is related to an asset that is already linked to the Exchange API Groups asset, the API instance displays these details.
-
If the API instance you added belongs to a new asset that is not yet liked to the Exchange API Groups asset, customers must create a new version of the API Groups asset.
Task Prerequisites
Before you begin, you must have:
-
At least one API instance in your organization or business group
Otherwise, you will not be able to find the required organization or business group in the list.
-
API Group Administrator permissions to add API instances to an API Group
Add API Instances to Existing API Groups
You might want to add API instances to an existing API Group to widen the business problem it solves.
To add API instances to an existing API Group:
-
Navigate to Anypoint Platform > API Manager.
-
Click API Groups.
-
On the API Groups details page, expand the API Group to view its available versions.
-
Click Add group instance for the version of the API Group that you want to add the API instance to.
The Creating a new group instance page is displayed.
-
Click +Add.
-
If the API instance and the API Group belong to the same business group or organization, select the API, API version, environment, and API version/instance to add to the API Group.
-
If the API instance and the API Group belong to different business groups:
-
Click Add Organization.
-
Select the organization or business group in which your API instance is available and click Add.
-
Select the environment, API instance, and version that you want to add.
-
-
Click Save.
Your API instances are now added to the API Group. To publish your API Group in Exchange, see Publishing API Groups to Exchange.
Remove API Instances from API Groups
If your business requirements change, you might want to modify an API Group by removing an existing API instance.
To remove an API instance from an API Group:
-
Navigate to Anypoint Platform > API Manager.
-
Click API Groups.
-
On the API Groups page, expand the API Group to view its available versions.
-
Expand the API Group version to view its available instances.
-
Click the API Group instance to view the instance details.
-
Click the more options menu icon ( ) next to Edit and select Delete.
If the API instance you removed is the last API linked to an asset, you must create a new version of the API Group. -
Click the checkbox to acknowledge that you understand this action can’t be undone then click Delete Group instance.
Create API Group Versions
If you modify an API Group to add a new API or delete an existing API based on changing business requirements, you might need to version the API Group appropriately.
To create additional versions of an API Group:
-
Navigate to Anypoint Platform > API Manager.
-
Click API Groups.
-
Click Add group version for the API Group.
-
In the API Group Version field, specify the version number that you want to create: for example,
v1.1
orv2.0
. -
In the API Group instance label field, enter a label to uniquely identify this instance of the group.
-
Click Continue. .
-
Add API instances in the API Groups.
The API Group is prepopulated with the existing instances from the previous version. For more information about how to add API instances to an API Group, see Adding API Instances to Existing Groups.
-
Click Save.