Develop > API calls > Release gate APIs > Update release gate action

Update release gate actions order

Modify the properties and order of release gate actions. With this API, you can update multiple actions at one time.

URI Method Parameters Returns

http://[host]:[port]/csa/api/codar/release-gate/gate-action/

PUT

 

200 - Updated
400 - bad request
401 - Authorization failure
404 - not found

500 - Internal server error

Example

The following URL was sent to update the release gate action:

https://localhost:8444/csa/api/codar/release-gate/gate-action/

The following JSON was sent for the update action:

{ "members": [ {"id": "1ce957c0-f49c-4048-9989-fedcffb7bda8", "name": "Deploy Action", "enabled": "true", "order":"1" }, {"id": "6d3b3708-c417-47e0-8a49-d3d90bcaf3bf", "name": "Custom Action", "enabled": "true", "order":"1" } ]

The following is the response JSON for the update action:

{ "@total_results": "2", "@self": "/csa/codar/release-gate/gate-action/", "@type": "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction", "members": [ { "@self": "/csa/codar/release-gate/gate-action/1ce957c0-f49c-4048-9989-fedcffb7bda8", "id": "1ce957c0-f49c-4048-9989-fedcffb7bda8", "name": "Deploy Action", "description": "", "type": "DEPLOY", "typeDisplayName": "Deploy Action", "order": 1, "enabled": true, "lifecycleStage": "DEVELOPMENT", "createdBy": "admin", "createdOn": "2015-11-26T07:31:04.041Z" }, { "@self": "/csa/codar/release-gate/gate-action/6d3b3708-c417-47e0-8a49-d3d90bcaf3bf", "id": "6d3b3708-c417-47e0-8a49-d3d90bcaf3bf", "name": "Custom Action", "description": null, "type": "CUSTOM", "typeDisplayName": "Custom Action", "order": 1, "enabled": true, "lifecycleStage": "DEVELOPMENT", "createdBy": "admin", "createdOn": "2015-11-26T11:20:50.713Z" } ] }