Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow.
Process:
workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step.parentId; the master tracks every child via its subId array, in Workflow-step order.startTime to the earliest child start time and endTime to the latest child end time.Notes:
tasks must equal the Workflow’s number of steps._id.Documentation Index
Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
Use this file to discover all available pages before exploring further.
Use a valid Bearer token to authenticate.
ID of the Workflow that defines the steps for this Activity. Must reference an existing Workflow in your organization.
"68f2198aef526585c30e16d2"
Array of step task objects. The array length must equal the Workflow's number of steps; the order of objects matches the order of workflow.steps. Each object carries the schedule, assignee, and Flow-specific data fields for one Workflow step.
Optional hub ID where this Activity is executed. Inherited by all child tasks.
"68ff42815ed967adac0f7192"
Activity created successfully. The response contains the master task object. workflow.steps is omitted from the response to reduce payload size — read the Workflow directly if you need the step definitions.
true
201
"Activity created successfully"
The newly-created Activity master task. The shape follows the standard Task object with taskType = activityMaster.