Integration Cloud 6.6.0 | REST APIs | Copying REST APIs
 
Copying REST APIs
Integration Cloud allows you to create a copy of a REST API from the REST APIs page. You can copy a REST API if you have the required permissions.
*To copy a REST API
1. From the Integration Cloud navigation bar, click Projects > <Select a Project> > APIs > REST APIs. The REST APIs page appears.
2. Select a REST API, click on the ellipses icon and select Copy.
The Copy dialog box appears.
3. By default, in the Select Project field, the current project is selected. To copy the REST API to another project, select a different project from the Select Project drop-down list.
Note:
Ensure that you create any account or reference data associated with this REST API in the target project.
4. Type a new name in the Copy As field.
5. Click Copy. The system creates a copy of the REST API with the new name and it appears in the REST APIs page of the target project.
If you create a REST API by using a file containing the Open API specification (formerly known as the Swagger specification) as a template, a copy of the REST API (including its dependencies namely its Integrations, Document Types, and Resources) is created. All resources and document types are renamed as per the new name. When Integrations encapsulated by the copied REST API are modified, the changes are reflected only in the copied REST API and not in the REST API from which it was copied. This is because, if you have created a REST API using the Build with Swagger approach, each REST API has its own set of Integrations.
If you create a REST API by using an existing set of Integrations (Build from scratch), a copy of the REST API is created. You can type a new name at the time of copying and a REST API with the new name is created. The same REST APIs that are referred to in the original REST API are also referred to in the copied REST API. If the Integration to which it is referred is modified in the copied REST API, then the changes will reflect in the original REST API because both the REST APIs refer or point to the same Integration. However, if another path with a different Integration is added to the copied REST API, this does not show in the original REST API.