Azure API Management Import API always says: API with specified name already exists

Slee picture Slee · Oct 27, 2015 · Viewed 8.2k times · Source

I am trying to import an API I have into Azure API Management using swagger, should be fairly simple but I always get the same error:

One or more fields contain incorrect values: API with specified name already exists

I do not have ANYTHING setup in Azure API management yet, very frustrating.

UPDATE

I am using Swashbuckle (https://github.com/domaindrivendev/Swashbuckle) to add Swagger to my WebAPI project.

It is generating Swagger 2.0 docs.

Here is the info element of the Swagger Doc:

swagger: "2.0",
info: {
version: "v3",
title: "ShopZioAPIv3"
},

It does not matter what I change that to, I still always get:

One or more fields contain incorrect values: API with specified name already exists

Answer

Christoph Petschnig picture Christoph Petschnig · May 11, 2016

I my case the title {"info":{"title": "API-NAME",... in the Swagger file did not match the name of the selected API (because we had created several test APIs).

Simply changing the string value fixed it.