Render a tree of the structure of the workflow.

GET /api/v1/workflow/{workflow_uuid}/tree

Path parameters

  • workflow_uuid string Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • name string

      The name of the task.

    • sub_tasks array[object]

      The sub tasks of the workflow task.

      Hide sub_tasks attributes Show sub_tasks attributes object
      • uuid string
      • name string
      • sub_tasks string
      • trigger_tasks_count integer
    • trigger_tasks_count integer

      The number of tasks this task will trigger when it is added to the workflow.

GET /api/v1/workflow/{workflow_uuid}/tree
curl \
 --request GET 'https://api.plannrcrm.com/api/v1/workflow/6ff8f7f6-1eb3-3525-be4a-3932c805afed/tree' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "name": "Task With Children",
  "uuid": "fab3542b-5b77-402d-a53b-346597e297cd",
  "sub_tasks": [
    {
      "name": "Task With Children",
      "uuid": "6d9763c3-6a21-47f9-b22b-18049e0d4722",
      "sub_tasks": "App\\Http\\Resources\\Board\\WorkflowTreeResource",
      "trigger_tasks_count": 5
    }
  ],
  "trigger_tasks_count": 5
}