Contact Us 1-800-596-4880

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.

  1. 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.

    import dc working spec

    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.

  2. Apply the changes to your API specification.

  3. Synchronize your changes with Design Center before publishing to Exchange.
    Refer to Commit Changes to Your API Specification Project for more information.

  4. In the Package Explorer view, right-click your API specification project and select Publish to Exchange.

  5. Update the asset and API version:

    update asset version
  6. Click Finish.

  7. 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.

    update version api dc
  8. 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.