Edit Imported API Specifications in Your Projects in Studio
You can edit an imported API specification in your project as an API specification project.
Before you begin, ensure that you have the necessary permissions to edit the API specification in Design Center, and that you don’t already have an API specification project for that API specification in your Studio workspace.
-
In the Package Explorer view, right-click the API dependency of your API specification project, select the name of the API you want to edit, and select Import API Spec from Design Center.
By default, Studio pulls the
main
branch in Design Center. If the API version that you imported from Exchange belongs to a different branch in Design Center, you must switch to that branch before continuing. -
Apply the changes to your API specification.
-
Synchronize your changes with Design Center before publishing to Exchange.
Refer to Commit Changes to Your API Specification Project for more information. -
In the Package Explorer view, right-click your API specification project and select Publish to Exchange.
-
Update the asset and API version:
-
Click Finish.
-
In the Package Explorer view, right-click the Mule project where you imported the API specification that edited, and select API Specs > the name of your API > Update Version.
-
Select the new version of your API specification and select Apply and Close.
Studio updates the API specification to the selected version and asks you if you want to regenerate the flow based on the new version.
To manually generate a flow for the updated API, right-click the Mule project where you updated the API specification, and select API Specs > the name of your API > Generate Flows.