CycleCreate
Request to start a new cycle. Supply exactly one of ``blueprint_id`` (legacy blueprint-based path), ``job_definition_id`` (converged WorkPlan path) or ``workstream_id`` (run-once: this WorkStream, this client, no plan). When ``job_definition_id`` is given the cycle is created via the fan-out engine; the job_definition's ``target_selector`` resolves the client unless ``client_id`` overrides it. ``workstream_id`` is AR-224's run-once. It carries the workstream/client binding directly instead of reading it off a stored row, so a client with no blueprint and no WorkPlan can still be run. Nothing new underneath: ``launch_inline_cycle_batch`` already takes all three ids as optional, and ``workstreams.cycle`` has permitted a blueprint-less inline cycle since migration 20260508_0600 (CHECK ``execution_mode='inline' OR blueprint_id IS NOT NULL``). The alternative — minting a job_definition to carry the run, as the batch route does — is the "hidden throwaway WorkPlan" the epic's guardrail forbids.
| Field | Type | Description |
|---|---|---|
blueprint_id | string (uuid) | null | Blueprint UUID (legacy path; use job_definition_id for new WorkPlans) |
job_definition_id | string (uuid) | null | WorkPlan (job_definition) UUID — preferred for WorkPlans created via POST /workplans |
workstream_id | string (uuid) | null | Run-once: launch THIS WorkStream for one client with no WorkPlan and no blueprint. Mutually exclusive with blueprint_id/job_definition_id. |
client_id | string (uuid) | null | Client to run for (job_definition path only; overrides target_selector) |
input_data | object | Input data for the cycleshow nestedEmpty object. |
priority | integer | Execution priority (1=highest) |
topic_id | string (uuid) | null | Optional Topic UUID this cycle belongs to. Stamped onto workstreams.cycle.topic_id so topic→run linkage resolves (the reverse link of platform.topics.workstream_id). NULL for cycles launched outside a topic context — no behaviour change. |