Render a tree of the structure of the workflow.

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

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.

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

GET /api/v1/workflow/{workflow_uuid}/tree
curl \
 -X GET https://api.plannrcrm.com/api/v1/workflow/workflow_uuid/tree \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"
Response examples (200)
{
  "name": "Task With Children",
  "uuid": "f19de1e6-fcd3-4c89-8b9a-d0d6fcf4d2ea",
  "sub_tasks": [
    {
      "name": "Task With Children",
      "uuid": "283d73b0-7112-4594-87c7-5d2852168eb1",
      "sub_tasks": "App\\Http\\Resources\\Board\\WorkflowTreeResource",
      "trigger_tasks_count": 5
    }
  ],
  "trigger_tasks_count": 5
}