This POST service will perform the same action found on the Build Request Form. It will initiate a request to build the project with the given Id. The service will return the workflowRequestId
which can be used by the getWorkflowRequestStatus (version 0) call to determine when the workflow is complete.
...
Attributes | Type | Description |
---|---|---|
warningMessage | String | Indicates any warning message in the event where the request was successful but no build was initiated. For example: No changes found in source control |
warningCode | String | Matching warning code for the warning message. |
workflowRequests | Array | Array of workflow request objects |
Response Codes
HTTP Code | Description |
---|---|
200 | No changes were detected, no build initiated. |
201 | Project was built successfully |
400 | Bad request |
401 | Unauthorized |
404 | Project not found |
500 | Unexpected internal server error |
Example
...
In response, we will receive an array of workflowRequests
Code Block | ||
---|---|---|
| ||
{ "warningMessage": null, "warningCode": null, "workflowRequests": [ { "packageName": null, "folderName": "Human Resources", "releaseSnapshotId": null, "workflowRequestStatus": "READY", "folderId": 10001, "exceptionToWindow": false, "releaseDefinitionId": null, "cmsissues": "", "workflowRequestId": 1200112019, "projectName": "ProcessHRRequest", "projectStreamId": 10502, "projectVersionName": "1.0.89", "requestAllFiles": false, "projectVersionId": 2920130001, "environmentId": 1121011016, "folderRequestId": null, "flexFields": [], "folderPath": "FlexDeploy/Human Resources", "projectId": 10501, "requestedBy": "fdadmin", "requestedStartTime": null, "force": truefalse, "stopOnPackageError": null, "workflowOverrideVersion": null, "folderVersionId": null } ] } |