Creating Resources

TIBCO Cloud™ Integration API resources support POST requests only where applicable. POST operations that create a resource require a model for the resource being created. TheTIBCO Cloud Integration API Swagger page identifies any required model property values. Only property values that are required or that are being updated must be included in the model.

When a successful POST operation returns, it returns both the HTTP Response code of 202, Accepted, and the ID of the resource that was created. For example, the following creates a new app or overwrites an existing app with new information:

POST "https://api.cloud.tibco.com/tci/v1/subscriptions​/0​/apps?appName=ASBTestNewApp1&instanceCount=0&retainAppProps=true" -H  "accept: application/json" -H  "Authorization: Bearer <your-oauth-token>" -H  "Content-Type: multipart/form-data" -F "artifact=@flogo.json;type=application/json" -F "manifest.json=@manifest.json;type=application/json"

Returns: 

{
  "appId": "vixblsemvwmtiwsh4sotkjartamogxd4",
  "status": "success",
  "message": "App push request accepted successfully"
}

Related Topics

API Basics