...
This is a list of code/value pairs for the workflow inputs. Not all inputs need to be supplied. If an input has a default value that is acceptable for the workflow to run, it does not need to be supplied.
Attribute | Required | Type | Description |
---|
code | Y | String | The code of the input |
value | N | String | The value of the input |
FlexField
This is the list of the code/value pairs for the FlexFields (not the display name). Not all FlexFields need to be supplied. If a FlexFields has a default value or options that are acceptable for the workflow to run, it does not need to be changed.
Attribute | Required | Type | Description |
---|
code | Y | String | The code of the FlexField |
value | N | String | The value of the FlexField |
PackageInfo
Attribute | Required | Type | Description |
---|
packageName | N | String | The name of the package to deploy. If blank, all files will be assumed. |
priority | N | Integer | The priority of the package. If it is not indicated, then FlexDeploy will deploy the packages in the order they are provided in the JSON request. |
projectVersionId | Y* | Long | The id of the project version to deploy. This parameter is not required if useLatestPackageVersion is true. |
useLatestPackageVersion | N | Boolean | Uses the most recent package version. Defaults to false. |
Response
Attribute | Type | Description |
---|
workflowRequestId | String | Returns the workflow request id that was just submitted. |
Response Codes
HTTP Code | Description |
---|
201 | Project was built successfully |
400 | Bad request |
401 | Unauthorized |
404 | Project not found |
500 | Unexpected internal server error |
Example Deploy Request
We can deploy a project with Id 10004 with the following request:
...
Code Block |
---|
|
{
"instanceIds":["ADF1213"100001],
"environmentId":12345,
"forceDeploy":"false",
"inputs":
[
{
"code":"RESTART_SEVER",
"value":"true"
},
{
"code":"COMMENT",
"value":"Deploying from REST API"
}
]
} |
...