Contact Free trial Login

Update Application Metadata

logo cloud active logo hybrid disabled logo server disabled logo pcf disabled

These examples show calling the CloudHub API. For instructions on how to perform these same tasks more easily using the Runtime Manager UI, see CloudHub and its child pages.

The PUT method, specified with the /api/applications/{domain} resource (where {domain} is the application domain), updates your application metadata, including the number of workers and system properties. You can also use it to update an existing application. For information on how to update you application, see Updating Your Application.

The update operation can update the workers, properties, muleVersion, and filename properties. Properties which are not specified are not updated.

Example Request:

PUT https://anypoint.mulesoft.com/cloudhub/api/applications/yourdomain
Content-Type: application/json

{
  "workers" : 1,
  "properties" : {
     "your.system.property" : "some.value"
  },
  "muleVersion" : "3.7.0",
  "filename" : "myapp.zip"
}

Example Response:

200
Content-Type: application/json
Location: https://anypoint.mulesoft.com/cloudhub/api/applications/yourdomain

{
  "workers":1,
  "domain":"yourdomain",
  "fullDomain":"yourdomain.cloudhub.io",
  "hasFile":false,
  "muleVersion":"3.7.0",
  "properties" : {
     "your.system.property" : "some.value"
  },
  "status":"DEPLOYED"
}

Check out the API Portal of the CloudHub API to see an interactive reference of all the supported resources, methods, required properties and expected responses.

In the API Portal, search among other Mule APIs for the CloudHub API and enter its latest version.