Exporting a TIBCO Flogo® App with the API
With the API, you can export the JSON file for a Flogo app or the app JSON and manifest JSON together. If both files are selected, they are exported as a ZIP file. The artifact can be used to create apps in another organization.
Note: If you export a Flogo app that was pushed from the TIBCO Cloud™ Integration API or the TIBCO Cloud™ - Command Line Interface, TIBCO Cloud™ Integration does not generate a manifest file.
See Exporting an App in the TIBCO Flogo® Apps section of the help for additional details and limitations.
To export an app JSON file, you need the following:
- Subscription Locator — The Subscription Locator of the Organization you want to access. To find Subscription Locators for your organizations use the
GET /v1/userinfo
method to return a list of all of the organizations for your OAuth Token with their Subscription Locators. You can use 0 as the Subscription Locator for the organization that owns the OAuth token. - App ID — ID of the app to be accessed, which can be retrieved using the
GET /v1/subscriptions/{subscriptionLocator}/apps
method. This is the ID of the source app.
- Use the
GET /v1/subscriptions/{subscriptionLocator}/apps/{appId}/export
method to export an app JSON file. - Include the
manifest
parameter to include the manifest.json file in the download. Default is false. When set to true, the flogo.json file and the manifest.json file are downloaded together in a ZIP file.
Role Requirements
- Admins can export any app in their organization.
- Users can export any app they own.
- Read-only users cannot export any apps.