Schema
WorkplanCreate
Request to create a workplan from a template or from a domain. OpenAPI title is ``WorkplanCreate`` (the public noun); the Python class name stays ``BlueprintCreate`` so internal imports and the DB layer are untouched. Only ``name`` is required. A template (``template_id``), a domain (``domain``) or a goal (``goal_template``) must be given; every other definition field is optional and carries the bounds of ``JobDefinitionCreate``.
| Field | Type | Description |
|---|---|---|
template_id | string (uuid) | null | Source template UUID (workstream_id). Optional: omit it to create the workplan from a domain instead. |
namerequired | string | Workplan name |
description | string | null | Workplan description |
domain | string | null | Domain knowledge key (e.g. 'vat_return'). Names the domain the workplan runs in when no template_id is given; defaults to 'general' with a template. |
goal_template | string | null | Goal template with {{variable}} placeholders. When omitted it is defaulted from the domain's DomainAgent persona. |
tools | string[] | null | Tool names the workplan may use |
deliverables | object[] | null | Deliverables the workplan produces |
max_turns | integer | null | Maximum agent turns per run (default 40) |
max_cost_usd | number | null | Maximum cost in US dollars per run (default 10.0) |
source_tracing | boolean | null | Whether runs trace the source of each figure (default false) |
input_bindings | object | null | Cross-cycle input bindings. |
per_client_overrides | object | null | Per-client overrides, keyed by client id |
default_context | object | null | Default context handed to every run |
trigger_type | "manual" | "schedule" | "webhook" | "email" | "api" | null | How the workplan runs: manual, schedule, webhook, email or api |
schedule_spec | object | null | Structured schedule specification (round-trip source for the editor) |
target_selector | object | null | Who to run for: an object with a 'type' (manual, all_active, client_list, tag, single) and its ids. Mutually exclusive with client_id and client_ids. |
client_id | string (uuid) | null | Client UUID (optional; references platform.clients) |
client_ids | string (uuid)[] | null | Client UUIDs for a multi-client roster — maps to target_selector.type='client_list'. Mutually exclusive with client_id. |
config_overrides | object | Configuration overridesshow nestedEmpty object. |
schedule | string | null | Cron schedule expression (folded into configuration; null = unscheduled) |
schedule_timezone | string | null | IANA timezone for the schedule (folded into configuration) |
skip_weekends | boolean | Shift a fire time landing on Sat/Sun to the next business day |
holiday_calendar | string | null | Shift a fire time landing on a holiday to the next business day: 'UK', 'US', or 'AU' |
max_duration_minutes | integer | null | Per-instance duration guardrail in minutes (folded into configuration) |
human_checkpoints | string[] | null | Sign-off gate checkpoints (folded into configuration); [] clears the gate |
run_mode | string | null | Run posture: propose|auto_run (folded into configuration) |
not_ready_policy | string | Fan-out ready-gating policy for a client whose inputs are not ready at a scheduled fire: 'hold_and_wait' (skip that client, retry next cycle), 'run_and_flag' (fire anyway, flag the cycle — legacy default), or 'skip_cycle' (write a terminal skipped-cycle tombstone). |
schedule_overrides | object | Per-client schedule override map (clientId -> {cron_expr, timezone, skip_weekends, holiday_calendar}). An entry REPLACES the plan-level schedule for that client at fan-out; absent clients use the plan schedule.show nestedEmpty object. |