Edit Imported API Specifications in Your Projects in Studio
You can edit an imported API specification in your project as an API specification project.
Because importing OAS 3.0 API specifications as an API dependency for your project is not supported, you cannot edit them following this process. To import an OAS 3.0 API specification as an editable API specification project, see Synchronize API Specifications with Design Center.
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 and select the name of the API you want to edit > Import API Spec from Design Center.
By default, Studio pulls the
masterbranch 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.
See 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:
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 offers you to scaffold the flows again based on the new version.