Start Workflow
Start Workflow
The start workflow endpoint can be used to start a flow within a
workflow of type WORKFLOW_MANUAL_START
. Other flow types cannot be started.
If you have the flow set up to accept configurations at runtime, you must send
in the optional outcomes
array object.
cURL
curl -i -X POST "https://api.box.com/2.0/workflows/42037322/start" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-d '{
"type": "workflow_parameters",
"flow": {
"id": "8937625",
"type": "flow"
},
"files": [{
"type": "file",
"id": "389047572"
},
{
"type": "file",
"id": "389047578"
}],
"folder": {
"id": "2233212",
"type": "folder"
},
"outcomes": [
{
"id": "34895783",
"type": "outcome",
"task_collaborators": {
"type": "variable",
"variable_type": "user_list",
"variable_value": [{ "type": "user", "id": "890273642" }]
},
"completion_rule": {
"type": "variable",
"variable_type": "task_completion_rule",
"variable_value": "all_assignees"
},
"file_collaborator_role": {
"type": "variable",
"variable_type": "collaborator_role",
"variable_value": "viewer"
}
}
]
}'