Develop > API calls > Release gate APIs > Update deploy action details

Update deploy action details

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

URI Method Parameters Returns

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

PUT

actionId

200 - updated
400 - bad request
404 - not found

Example

The following URL was sent to update the deploy action:

https://localhost:8444/csa/api//codar/release-gate/gate-action/deploy/6decf992-8d51-41d6-b994-8f7b5f6a7425

The following JSON was sent for the update deploy action:

{ "name":"Deploy1", "description":"", "enabled":"true", "order":"2", "notifyOnSuccess":"false", "notifyOnFailure":"true", "rejectOnFailure":"false", "environmentId":"8a818d585147a8ac015147af240b0009", }

following is the response JSON for the update deploy action:

{ "@self": "/csa/codar/release-gate/gate-action/6decf992-8d51-41d6-b994-8f7b5f6a7425", "@type": "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction", "id": "6decf992-8d51-41d6-b994-8f7b5f6a7425", "name": "Deploy1", "description": "", "updatedBy": "admin", "lastUpdated": "2015-12-02T11:58:06.070Z" }