Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude
API/schemas
Schema

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.

FieldTypeDescription
blueprint_idstring (uuid) | nullBlueprint UUID (legacy path; use job_definition_id for new WorkPlans)
job_definition_idstring (uuid) | nullWorkPlan (job_definition) UUID — preferred for WorkPlans created via POST /workplans
workstream_idstring (uuid) | nullRun-once: launch THIS WorkStream for one client with no WorkPlan and no blueprint. Mutually exclusive with blueprint_id/job_definition_id.
client_idstring (uuid) | nullClient to run for (job_definition path only; overrides target_selector)
input_dataobjectInput data for the cycle
show nested
Empty object.
priorityintegerExecution priority (1=highest)
topic_idstring (uuid) | nullOptional 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.