| title | Edit an API in the Azure portal | Microsoft Docs |
|---|---|
| description | Learn how to use API Management to edit an API or its swagger. |
| services | api-management |
| author | dlepow |
| ms.service | azure-api-management |
| ms.topic | how-to |
| ms.date | 10/07/2025 |
| ms.author | danlep |
| ms.custom | sfi-image-nochange |
[!INCLUDE api-management-availability-all-tiers]
This article describes how to use Azure API Management to edit an API.
- You can add, rename, or delete operations in the Azure portal.
- You can edit your API's swagger.
[!INCLUDE api-management-navigate-to-instance.md]
- Under APIs, select APIs.
- Select an API that you have imported.
- Select the Design tab.
- Select the operation that you want to edit.
- To rename the operation, select the pencil button in the Frontend pane.
:::image type="content" source="./media/edit-api/edit-api001.png" alt-text="Screenshot that shows the process for editing an API in API Management.":::
You can update your API's swagger from the Azure portal by completing these steps:
-
On the APIs page, select All operations.
-
Select the pencil button in the Frontend pane.
:::image type="content" source="./media/edit-api/edit-api002.png" alt-text="Screenshot that shows the pencil button in the Frontend pane.":::
Your API's swagger appears.
:::image type="content" source="./media/edit-api/edit-api003.png" alt-text="Screenshot that shows an API's swagger.":::
-
Update the swagger.
-
Select Save.
Caution
If you're editing a non-current revision of an API, you can't change the following properties:
- Name
- Type
- Description
- Subscription required
- API version
- API version description
- Path
- Protocols
If your edits change any of these properties in a non-current revision, you'll see the error message
Can't change property for non-current revision.
[!INCLUDE api-management-define-api-topics.md]