Develop > API calls > Release gate APIs > Updates approval action details

Updates approval action details

Updates approval action details. This API takes actionId of the approval action as the parameter.

URI Method Parameters Returns

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

PUT

actionId

200 - updated
400 - bad request
404 - not found

Example

The following URL was sent to update the approval action:

https://localhost:8444/csa/api/coda/release-gate/gate-action/approval/d4b016a5-47f6-4db3-88ab-6e494a2039e0

The following JSON was sent for the update 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 for the update approval action:

 

{ "@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", "updatedBy": "admin", "lastUpdated": "2015-12-02T11:29:27.162Z" }