Uploading an Extension with the API
Using the API you can upload a TIBCO Flogo® extension to the same organization. See Using Extensions for detailed information and important considerations for uploading extensions.
To upload an extension 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/userinfomethod 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. -
scopeparameter— The owner of the selected extension, either user or org. For example, an extension can be owned by a user or, if it has been promoted, by the organization. Extensions promoted to the organization level can be used by anyone with the appropriate permissions. - Extension zip file — Name of the zip file containing the extension to be uploaded.
Note: Include a path to the directory containing the zip file.
- Use the
POST /v1/subscriptions/{subscriptionLocator}/extensions/uploadmethod to upload an extension. - Set the
overrideparameter to determine whether or not to overwrite an extension with the same name and app type. If set to false, the existing extension is not overwritten. If set to true, the existing extension is deleted and then the new extension is copied to the selected organization. Default is true. - Include the
scopeparameter, to select ownership of the uploaded extension, either user or organization level. - Include the
extensionZipparameter with the name of the extension zip file to be uploaded. - Use the
GET /v1/subscriptions/{subscriptionLocator}/extensionsmethod to view the extension after it is uploaded.
Role Requirements
- Admins can upload extensions.
- Users can upload extensions.
- Read-Only users cannot upload extensions.