Develop > API calls > Application life cycle APIs > Create a new lifecycle stage

Create a new lifecycle stage

Creates a new lifecycle stage.

URI Method Parameters Returns
http://[host]:[port]csa/api/codar/app-lifecycle/stages POST  

201 - Successfully created a new life cycle stage
400 - Bad request
401 - Authorization failure
500 - Internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-lifecycle/stages

The following input JSON was sent:

{
   "displayName":"test",
   "description":"test stage desc",
   "icon":"/csa/api/blobstore/Service_Design.png?tag=library", 
   "color":"#ffffff",
   "roles":["4552b9da88a24767ac7e5b605f050df5","90d96588360da0c701360da0f2b900cb"]

}

The following JSON was returned:

{
  "@self": "/csa/api/codar/app-lifecycle/stages/ab0be9f6-ef4f-4bf7-9430-04c0c6776ac5",
  "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage",
  "name": "TEST_STAGE",
  "displayName": "test",
  "description": "test stage desc",
  "icon": "/csa/api/blobstore/Service_Design.png?tag=library",
  "color": "#ffffff",
  "roles": [
    {
      "@self": "/csa/api/codar/role/90d96588360da0c701360da0f2b900cb",
      "@type": "urn:x-hp:2012:software:cloud:data_model:role",
      "name": "CSA_ADMIN",
      "displayName": "Administrator",
      "description": "The Administrator has access to all functionality in the Cloud Service Management Console which includes the Catalogs, Offerings, Designs, Components, Resouces, Operations and Organizations content areas.",
      "icon": "/csa/images/categories/role/csa_admin.png",
      "readOnly": false
    },
    {
      "@self": "/csa/api/codar/role/4552b9da88a24767ac7e5b605f050df5",
      "@type": "urn:x-hp:2012:software:cloud:data_model:role",
      "name": "CODAR_APPLICATION_ARCHITECT",
      "displayName": "Application Architect",
      "description": "The Application Architect can embrace component, create, edit, delete Application and application version, deploy, create, edit and delete package in development stage. Application Architect cannot reject package in any stage.",
      "icon": "/csa/images/categories/role/application_architect.png",
      "readOnly": false
    }
  ]
}