Develop > API calls > Package APIs > Update package component properties

Update package component properties

Updates the component properties for a package.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package/{packageID}/properties PUT
  • Package ID
  • JSON body

200 - successful
400 - bad request
404 - not found

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-package/5975ad69-0519-484b-bde3-30b936dd31b/properties

The following JSON was sent:

{
"members": [
      {
              "icon": "pluginResources/topology/icons/SERVER.svg",
              "@self": "/csa/api/package/component/VcenterServerType__VERSION__04.10.0000__GROUPID__com.hp.csa.type0001",
              "description": "vCenter Server",
              "@type": "urn:x-hp:2012:software:cloud:data_model:package",
              "name": "vCenter Server",
              "provider": "VMWARE_VCENTER",
              "displayName": "vCenter Server",
              "properties" : [
                      {

                             "name" : "vmTemplateReference",
                             "value" : "ubuntu_tempref"
                             },{
                             "name" : "customizationSpec",
                             "value" : "linux_spec"
                             },{
                             "name" : "vmNamePrefix",
                             "value" : "app_"
                     }
              ],
              "displayName": "vCenter Server"

      }
]

}
The following JSON was returned:
No Contents