Develop > API calls > Package APIs > Create a package

Create a package

Creates a new package for the specified application design. The package is only created if the Codar license is present and the design is associated to the Release Pipeline.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package POST JSON body

201 - successful
400 - bad request
404 - not found

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-package

The following JSON was sent:

{
 "name":"HelloWorld Package 1",
 "description":"This is my first Package",
 "applicationDesignId" : "30d4458b-e54c-4e91-a144-026d09289ae0"
}

The following JSON was returned:

{
      "@self": "/csa/api/package/09ead497-82d1-4045-8b17-73122c3cc6be",
   "@type": "urn:x-hp:2012:software:cloud:data_model:package",
   "lifecycleStage": "DEVELOPMENT",
   "packageState": "ACTIVE",
   "applicationDesignId": "30d4458b-e54c-4e91-a144-026d09289ae0",
   "name": "HelloWorld Package 1",
   "description": "This is my first Package"
}