Saving an API as a New API
You can create an API by copying it from another API that exists in API Hub for Design. You can use this functionality to use some existing specification as a starting point for your API spec, or you can create a copy to experiment with changes without affecting the original spec.
To use this functionality, you must be an owner of the original API or you must be a designer for it.
The new API can belong to your personal account or any organization you created.
How it works
Open one of your API specifications for editing.
Select the needed version:
Make changes to the specification if needed.
Select the Save as New command:
This will open the following dialog:
In the dialog, enter the following data:
API Name – The API name is its unique ID and is part of its path on API Hub for Design, as in https://app.swaggerhub.com/api/{owner}/petstore/1.0. Requirements:
3 to 60 character long
allowed characters:
A..Z a..z 0..9 - _ .
must start and end with a letter or digit
Note that API names are case-sensitive, so petstore and PetStore are two different APIs.
API Version – The initial version of the new API. For example, 1.0, 1.0.0, 1.0b, and so on. See Version Format.
Owner – Choose whether to create the API in your personal or organization account (if you are a member of an organization on API Hub for Design). The API owner is part of the API path in API Hub for Design: https://app.swaggerhub.com/apis/owner/api-name/1.0. Organization-owned APIs count toward the organization’s limits rather than yours.
Note
Organization owners and anyone with the Designer role can create APIs in that organization.
Project – If an organization is selected as the Owner, you can optionally select a project to add this API to. The list contains existing projects available to you.
Note
This option was added in v. 1.23.
Visibility – Choose whether to make the API public or private. Public APIs are visible to anyone, even to people without a API Hub for Design account. Private APIs can be accessed only by owners and by those added as designers or consumers). You can change the API visibility later if needed.
Click Save.
Notes
The “Save as New” command does not copy integrations, versions and comments in the original API. Also, it does not copy the user permissions defined in the original API.
Forking is another way of creating a new API based on some existing API. The difference between these approaches is that you can use “Save as New” only for the APIs which you can edit. Forking works for any API to which you have access. For example, you can fork any public API or a private API, where you are a collaborator.