Develop > API calls > Release gate APIs > Add approval gate action

Add approval gate action

Adds approval gate action to a specified lifecycle stage of an application design.

URI Method Parameters Returns

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

POST

 

200 - updated
400 - bad request
401 - Authorization failure
404 - not found
500 - Server Exception

Example

The following URL was sent to add approval gate action:

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

The following JSON was sent for the approval action:

{ "name": "Approval1", "description": "approval test1" , "enabled": "true", "applicationDesignId": "4ed560b1-a533-43c0-ae7b-eb635dd3a3cc", "stage": "DEVELOPMENT", "templateType": "NAMED_APPROVER_TEMPLATE", "automation": "true", "waitTime": "0", "replyType": "Approved", "minimumApprovals": "1", "minimumDenials": "1", "approvers":[ {"personId": "8a818d5851613d3b0151624ced9c045c", "userName":"dharmaarchitect"} ] }

The following is the response JSON:

{ "@self": "/csa/codar/release-gate/gate-action/d4b016a5-47f6-4db3-88ab-6e494a2039e0", "@type": "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction", "id": "d4b016a5-47f6-4db3-88ab-6e494a2039e0", "name": "Approval1", "description": "approval test1", "type": "APPROVAL", "createdBy": "admin", "createdOn": "2015-12-02T11:12:32.556Z" }