---
schema_version: "1"
id: 8aec1a444cd4f5ce3e17cab2abf3206361e72b36e72066114698ee4fa34a7e11
title: Edit an Imported API Specification and Publish the Changes
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/studio/sync-imported-api-specifications-design-center.md
canonical_url: https://docs.mulesoft.com/studio/sync-imported-api-specifications-design-center
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ae3514706b48365b6e3fe05d34417f2af566d17a11f670e1a8fff4d07616063d
description: MuleSoft Documentation Site
latest: true
---
---
product: Studio
---

# Edit an Imported API Specification and Publish the Changes

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Edit an API specification that you imported as a dependency by opening it as an API specification
project in Studio. Then synchronize your changes with MuleSoft VCS and publish the new version to
Exchange.

Before you begin, ensure that you have the necessary permissions to edit the API specification, 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 MuleSoft VCS**.

    ![\*Edit API specification\* option highlighted in the dependency context menu.](/mulesoft/current/en-us/studio/_images/edit-api-spec.png)

    By default, Studio pulls the `main` branch in MuleSoft VCS. If the API version that you imported
    from Exchange belongs to a different branch in MuleSoft VCS, you must switch to that branch
    before continuing.

2.  Apply the changes to your API specification.

3.  Synchronize your changes with MuleSoft VCS before publishing to Exchange.

    Refer to
    [Commit Changes to Your API Specification Project](https://docs.mulesoft.com/studio/sync-api-projects-design-center#commit-to-branch)
    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:

    ![A window showing an API diagram, project files, and a menu with options including ](/mulesoft/current/en-us/studio/_images/update-asset-version.png)

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

    !["A window displaying the API Specs section](/mulesoft/current/en-us/studio/_images/update-version-api-dc.png)

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