Develop > API calls > Application design APIs > Update an application design

Update an application design

Update an application design by providing an application design ID and an application design in JSON format.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-design/{applicationDesignID} PUT
  • Application Design ID
  • JSON

200 - successful
400 - bad request
401 - not authorized
404 - not found
500 - internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-design/e57673db-0ee7-4061-8f9e-ffdcabc07b4c

The following JSON was sent:

{
  "@self" : "/csa/api/topology-model/topology/e57673db-0ee7-4061-8f9e-ffdcabc07b4c",
  "@type" : "urn:x-hp:2013:software:cloud:topology_model:topology",
  "groupId" : "com.hp.csa",
  "artifactId" : "3eb835ae-750f-41c9-8861-de70a285ca40",
  "version" : "1.0.0",
  "displayName" : "Test_Design-1",
  "description" : "my design updated",
... (The remaining output is the same as Import an application design example with modified values.)
}

The following JSON was returned:

{
  "@self" : "/csa/api/topology-model/topology/e57673db-0ee7-4061-8f9e-ffdcabc07b4c",
  "@type" : "urn:x-hp:2013:software:cloud:topology_model:topology",
  "groupId" : "com.hp.csa",
  "artifactId" : "3eb835ae-750f-41c9-8861-de70a285ca40",
  "version" : "1.0.2",
  "displayName" : "Test_Design-1",
  "description" : "my design updated",
... (The remaining output is the same as Import an application design example.)
}