Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude
API/schemas
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``.

FieldTypeDescription
template_idstring (uuid) | nullSource template UUID (workstream_id). Optional: omit it to create the workplan from a domain instead.
namerequiredstringWorkplan name
descriptionstring | nullWorkplan description
domainstring | nullDomain 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_templatestring | nullGoal template with {{variable}} placeholders. When omitted it is defaulted from the domain's DomainAgent persona.
toolsstring[] | nullTool names the workplan may use
deliverablesobject[] | nullDeliverables the workplan produces
max_turnsinteger | nullMaximum agent turns per run (default 40)
max_cost_usdnumber | nullMaximum cost in US dollars per run (default 10.0)
source_tracingboolean | nullWhether runs trace the source of each figure (default false)
input_bindingsobject | nullCross-cycle input bindings.
per_client_overridesobject | nullPer-client overrides, keyed by client id
default_contextobject | nullDefault context handed to every run
trigger_type"manual" | "schedule" | "webhook" | "email" | "api" | nullHow the workplan runs: manual, schedule, webhook, email or api
schedule_specobject | nullStructured schedule specification (round-trip source for the editor)
target_selectorobject | nullWho 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_idstring (uuid) | nullClient UUID (optional; references platform.clients)
client_idsstring (uuid)[] | nullClient UUIDs for a multi-client roster — maps to target_selector.type='client_list'. Mutually exclusive with client_id.
config_overridesobjectConfiguration overrides
show nested
Empty object.
schedulestring | nullCron schedule expression (folded into configuration; null = unscheduled)
schedule_timezonestring | nullIANA timezone for the schedule (folded into configuration)
skip_weekendsbooleanShift a fire time landing on Sat/Sun to the next business day
holiday_calendarstring | nullShift a fire time landing on a holiday to the next business day: 'UK', 'US', or 'AU'
max_duration_minutesinteger | nullPer-instance duration guardrail in minutes (folded into configuration)
human_checkpointsstring[] | nullSign-off gate checkpoints (folded into configuration); [] clears the gate
run_modestring | nullRun posture: propose|auto_run (folded into configuration)
not_ready_policystringFan-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_overridesobjectPer-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 nested
Empty object.