Nav

Update Application Metadata

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

This document deals with calling the CloudHub API. For instructions on how to perform these same tasks more easily via 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:


         
      
1
2
3
4
5
6
7
8
9
10
11
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:


         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 link above, search among other Mule APIs for the "CloudHub" API and click on its latest version.

In this topic: