Develop > API calls > Application life cycle APIs > Update life cycle stages of the default template

Update lifecycle stages of the default template

Updates lifecycle stages of the default template.

URI Method Parameters Returns

http://[host]:[port]/csa/api/codar/app-lifecycle/stages/template

PUT

 

200 - Successfully updated lifecycle stage
400 - Bad request
500 - Internal Server error

Example

The following URL was sent:

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

 

The following JSON was sent to update an lifecycle stages of the default template:

{
	"members":[
		{"id":"84905d24-d92f-4916-b312-78af206d31a5","stageOrder":1},
		{"id":"84905d24-d92f-4916-b312-78af206d3117","stageOrder":2},
		{"id":"84905d24-d92f-4916-b312-78af206d3113","stageOrder":3},
		{"id":"84905d24-d92f-4916-b312-78af206d31a8","stageOrder":4}
	]
}	

The following JSON was returned:

{
  "@total_results": 2,
  "@self": "/csa/api/codar/app-lifecycle/stages/",
  "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage",
  "members": [
    {
      "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a5",
      "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage",
      "name": "DEVELOPMENT",
      "displayName": "test stage1",
      "description": "test stage1 desc",
      "icon": "/csa/api/blobstore/Service_Design.png?tag=library",
      "color": "#ffffff"
    },
    {
      "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a8",
      "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage",
      "name": "PRODUCTION",
      "displayName": "Production",
      "description": "The final stage in which the artifacts are deployed and can go live.",
      "icon": "/csa/api/blobstore/lifecycle_stage_production.png?tag=library",
      "color": "#ff887c"
    }
  ]
}