Skip to main content

List the sub-workflow groups of a workflow.

GET/api/v1/workflows/{workflow_id}/spawn-groupsworkflows:read

The groups its Sub Workflow steps started, as the Inbox's Sub-workflows panel shows them: each with its step, status, child_counts by status, deadline, the step's entries, and can_be_managed_by_caller. Ordered by workflow_item_id, then started_at (oldest first); no other order is offered. Needs View Workflow Spawn Groups and a workflow you can see; empty while the company has no groups. get_workflow's items say which item a group belongs to.

Scopeworkflows:read
AsynchronousNo
MCP toollist_workflow_spawn_groups
Portal permissionsview_workflow_spawn_groups
Pagingkeyset
Default orderworkflow_item_id,started_at
Sort fieldsworkflow_item_id, started_at, spawn_group_id

Parameters​

NameInTypeRequiredDescription
workflow_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of SpawnGroupRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

SpawnEntry​

FieldTypeRequiredDescription
namestringRequired
spawn_entry_idstringRequired

SpawnGroup​

FieldTypeRequiredDescription
attemptintegerRequiredWhich run of the step on the item this group is, from 1. ≥ -2147483648; ≤ 2147483647
can_be_managed_by_callerbooleanRequiredThe caller starts the parent, or holds Manage Other Users Workflow Spawn Groups: they may cancel, force-complete and Proceed now, each with its own permission.
can_children_be_opened_by_callerbooleanRequiredThe caller may open any child: they may manage the group, or hold View All Workflows.
child_countsSpawnGroupChildCountsRequired
collect_node_run_idstring or nullRequiredThe Collect step's run while it waits for the group or runs a pass; null otherwise.
completed_atstring (date-time) or nullRequiredWhen the group was completed or cancelled; null while it is not.
deadline_atstring (date-time) or nullRequiredWhen the group's children time out; null without a deadline.
entriesarray of SpawnEntry or nullRequiredThe step's entries by spawn_entry_id; null when the step's settings cannot be read (the step was deleted, or its settings were edited and no longer parse).
expected_countinteger or nullRequiredHow many children the group plans; null until planned.
has_collect_arrivedbooleanRequiredThe group is bound to its Collect step: the step has arrived on the parent item.
spawn_group_idstringRequired
spawn_node_idstringRequiredThe Sub Workflow step (its node_id) that started the group.
spawn_node_labelstring or nullRequiredThe step's label; null when the step was deleted from the template.
started_atstring (date-time) or nullRequiredWhen the group was opened.
statusstringRequiredplanning, spawning, open, collecting, collected, completed or cancelled (open enum). Force-complete takes a group that is planning, spawning or open; Proceed now only one that is open.
workflow_idstringRequiredThe parent workflow.
workflow_item_idstringRequiredThe parent's item the Sub Workflow step ran on.

SpawnGroupChildCounts​

FieldTypeRequiredDescription
cancelledintegerRequired≥ -2147483648; ≤ 2147483647
completedintegerRequired≥ -2147483648; ≤ 2147483647
completed_lateintegerRequired≥ -2147483648; ≤ 2147483647
failedintegerRequired≥ -2147483648; ≤ 2147483647
pendingintegerRequired≥ -2147483648; ≤ 2147483647
runningintegerRequired≥ -2147483648; ≤ 2147483647
startingintegerRequired≥ -2147483648; ≤ 2147483647
timed_outintegerRequired≥ -2147483648; ≤ 2147483647