Updating App Attributes with the API
Using the API you can update app attributes and send those updates to the cloud for TIBCO BusinessWorks, TIBCO Flogo®, and Node.js apps.
To update app attributes 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.
- Use the
PUT /v1/subscriptions/{subscriptionLocator}/apps/{appId}
method to update the attributes of an existing app and push the changes to the cloud. - Include the attributes you want to change in the model. Attributes include name, description, endpoint visibility, deployment stage, and tags.
- Use the
GET /v1/subscriptions/{subscriptionLocator}/apps/{appId}
method to view the app details and confirm your changes.
Note: App tags are completely replaced each time an app is updated. Be sure to include any tags you want on the app when you update the app. Sending an empty array of App tags removes all of the tags on the app.
TIBCO Cloud Integration - Connect has a separate API that allows you to manage objects for that capability. For more information on updating TIBCO Cloud Integration - Connect apps, see the help for PUT /v1/orgs/{orgId}/solutions/{solutionId}
and PUT /v1/orgs/{orgId}/solutions/{solutionId}/schedule
under Solutions, Create Or Modify A Solution Or Map, and Copy A Solution To Another Organization in the TIBCO Cloud Integration - Connect Developer Portal.
Role Requirements
- Admins can update any app in their organization.
- Users can update any app they own.
- Read-only users cannot update any app.