Develop > API calls > Application life cycle APIs > Update existing lifecycle stage

Update application lifecycle stage

Updates an application lifecycle stage.

URI Method Parameters Returns

http://[host]:[port]csa/api/codar/app-lifecycle/stages/{stageId}

PUT

stageId - Id of the lifecycle stage

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/{stageId}

 

The following JSON was sent to update an lifecycle stage:

{ "displayName":"test stage", "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/84905d24-d92f-4916-b312-78af206d31a5", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "DEVELOPMENT", "displayName": "test stage", "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 } ] }