Copying an App with the API

Using the API you can copy TIBCO BusinessWorks, TIBCO Flogo®, and Node.js apps to another new app in the same organization or another organization. The copied app is separate and independent from the original app with a different endpoint.

Note: When pushing or copying an app, if the connections associated with that app do not exist in the target organization they are not automatically created and therefore do not display on the Connections page. The connections are contained in the app JSON and are used at runtime allowing the app to execute successfully.

If the target organization has an existing connection that is similar, the app uses the connection ID of that connection. For example, if the app has a Salesforce connection and the target organization has an existing Salesforce connection, the app uses the ID of the existing Salesforce connection.

To copy an app you need the following: 

  1. Use the POST ​/v1​/subscriptions/{subscriptionLocator}/apps/{appId}/copy method to copy an existing app to a new app.
  2. Include a unique name for the app.
  3. Provide the Subscription Locator of the target organization where you are copying the app. If no Subscription Locator is provided, the app is copied to the current organization.
Note: App names must be unique within an organization. If you attempt to copy an app to an organization where an app with that name that already exists, the app copy fails with an error indicating that there is an existing app with the same name.
Note: For apps, you cannot choose connections for the copied app during the copy process. Open the app in the User Interface and update the connections as needed.

After an app is copied, the app will be in the "Stopped" state, and you must scale up instances to make it run.

TIBCO Cloud Integration - Connect has a separate API that allows you to manage objects for that capability. For more information on copying TIBCO Cloud Integration - Connect apps, see the help for POST ​/v1​/orgs​/{orgId}​/solutions​/{solutionId}​/clone under Solutions and Copy A Solution To Another Organization in the TIBCO Cloud Integration - Connect Developer Portal.

Role Requirements

Related Topics

Managing Apps with the TIBCO Cloud™ Integration API

Scaling an App with the API