Generate a Build

Use this API call to generate a new stack build.

Requires the stacks-builds-manage permission.

Returns

Returns a Task Descriptor Object, otherwise returns an Error.

POST /v1/stacks/{ID}/builds/{BUILD_ID}/tasks

Example Request
$ curl https://api.cycle.io/v1/stacks/5a98710df231a500017f9aa4/builds/5d02f7e9b89494000108422a/tasks \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
\
-H 'Content-Type: application/json' \
-d '{"action":"generate"}' \
-X POST
Example Response
{
"data": {
"action": "generate",
"job_id": "5d01b9b3db2ab00001508cd8"
}
}