Render a tree of the structure of the workflow.
Headers
-
Content-Type
string -
Accept
string
Path parameters
-
workflow_uuid
string Required
GET
/api/v1/workflow/{workflow_uuid}/tree
curl \
--request GET 'https://api.plannrcrm.com/api/v1/workflow/workflow_uuid/tree' \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
Response examples (200)
{
"name": "Task With Children",
"uuid": "4f6f6315-9f7c-4931-b4ac-d018a7d5476c",
"sub_tasks": [
{
"name": "Task With Children",
"uuid": "2cb259e8-d5d2-442a-948e-9b6be2dbedaf",
"sub_tasks": "App\\Http\\Resources\\Board\\WorkflowTreeResource",
"trigger_tasks_count": 5
}
],
"trigger_tasks_count": 5
}