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

Update custom action details

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

URI Method Parameters Returns

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

PUT

actionId

200 - updated
400 - bad request
404 - not found

Example

The following URL was sent to update the custom action:

https://localhost:8444/csa/api/codar/release-gate/gate-action/custom/6d3b3708-c417-47e0-8a49-d3d90bcaf3bf

The following JSON was sent for the update custom action:

{ "name": "custom1", "description": "Action description" , "enabled": "true", "notifyOnSuccess": "true", "notifyOnFailure": "true", "ignoreOnFailure": "true", "rejectOnFailure": "true", "deployActionId": "80862c3f-dcb7-46b4-8c1d-4d024cbbe2f8", "engineProcessId": "80862c3f-dcb7-46b4-8c1d-4d024cbbe2f8", "engineProcessName": "Test App OO Flow" }

The following is the response JSON for the update custom action:

{ "@self" : "/csa/codar/release-gate/gate-action/6d3b3708-c417-47e0-8a49-d3d90bcaf3bf", "@type" : "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction", "id" : "6d3b3708-c417-47e0-8a49-d3d90bcaf3bf", "name" : "custom1", "description" : "Action description", "updatedBy" : "admin", "lastUpdated" : "2015-12-02T10:50:46.983Z" }