completeApprovalGate

Please note that this REST service was added on 10/5/2017. If you have an earlier build, you will need to upgrade to gain access to this feature.


This POST service will perform the same Approval Gate action found on the Release Dashboard Screen. This is used to complete an approval gate without having to log into the FlexDeploy server.

API URL

http://host:port/flexdeploy/rest/release/completeApprovalGate


Complete Approval Gate Sample JSON Request


{

"authentication": { "userId":"fdadmin", "password":"password1" },

Opening bracket

Authentication section, used on all types of requests.

Required parameters for creating or editing a release.

"releaseName": "Demo Release",

"gateName": "MyApprovalGate",

"environmentCode": "DEV",

"status": "APPROVED",

Complete the gate on the release named Demo Release

The Gate we want to complete is named "MyApprovalGate".

The gate we're approving is in the DEV Environment.

The Status to give to the gate. Options are [APPROVED, REJECTED]

Optionally, include any of this information.

Verify that your JSON is valid; check for trailing commas if you don't include this section.

"snapshotName": "09-24-2017 14:26:47"The name of the Snapshot we want to approve is "09-24-2017 14:26:47". If this is not specified, FlexDeploy will use the latest running snapshot.
}Closing bracket

Parameters

Parameter

Required

Type

Description

authentication

Y

Object

The login information for the user connecting to FlexDeploy.

releaseName

Y

String

The name of the release containing the gate we want to complete.

gateName

Y

String

The name of the gate to update the status on.

snapshotName

N

String

The name of the executing snapshot that is waiting on the gate. If not provided, latest Stage Execution will be used.

environmentCode

Y

String

The code for the environment the gate is executing in.

status

Y

String

The updated status to apply to the gate. Options are [APPROVED, REJECTED]

Example Request

{
   "authentication": 
    {
       "userId": "fdadmin",
       "password": "welcome1"
    },
   "releaseName": "Release 3",
   "environmentCode": "TEST",
   "gateName": "Manager Approval",
   "status" : "APPROVED"
}


The following macros are not currently supported in the footer:
  • style