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

Workplan

Workplan response model. OpenAPI title is ``Workplan``; the Python class name stays ``BlueprintResponse``. ``workplan_type`` discriminates the two backing stores: - ``"blueprint"`` — legacy single-client plan (workstreams.blueprint) - ``"job_definition"`` — Model A multi-client plan (workstreams.job_definition)

FieldTypeDescription
idrequiredstring (uuid)Workplan UUID
workplan_typestringBacking store type: 'blueprint' (legacy single-client, has template_id/client_id) or 'job_definition' (Model A multi-client, has target_selector; client_id is null).
permakeystring | nullStable short key for URL construction
ws_permakeystring | nullParent WorkStream permakey for /workstreams/<ws>/workplan/<wp> URL. Populated via the most-recent cycle's parent workstream for both blueprint and job_definition rows; null only when no cycle has run yet.
template_idstring (uuid) | nullSource template UUID (workstream_id in DB); null for job_definition-backed workplans
target_selectorobject | nullMulti-client target binding for job_definition workplans (e.g. {type: 'explicit', client_ids: [...]}). Null for blueprint workplans.
namerequiredstringWorkplan name
client_idstring (uuid) | nullClient UUID (optional)
client_namestring | nullClient name
run_modeWorkplanRunModeThe WorkPlan's effective run posture (S2-READ §1a). ``effective`` resolves: plan-level ``configuration.run_mode`` → the workstream default → ``propose``. ``source`` tells the FE whether the value was set on this plan or inherited. ``locked`` is the firm-lock governance flag — always ``False`` in S2.
show nested
cohortWorkplanCohortStructural facts about the WorkPlan's bound client set (S2-READ §1b). Live exception/ready counts live on the roster's ``summary`` (one authoritative source); this object carries only the cohort's size + shape. With no multi-client cohort writer yet, ``total_clients`` resolves to 0/1 and ``selector_kind`` to ``single`` — the shape is frozen, the populating data is S2-write BE work behind it.
show nested
config_overridesobjectConfiguration (from DB)
show nested
Empty object.
effective_configobjectMerged effective config
show nested
Empty object.
schedulestring | nullCron schedule expression (from configuration; null = unscheduled)
schedule_timezonestringIANA timezone for the schedule (from configuration; defaults UTC)
max_duration_minutesinteger | nullPer-instance duration guardrail in minutes (from configuration; null = unset)
human_checkpointsany[]Sign-off gate checkpoints (from configuration). Non-empty means a partner sign-off gate is on.
input_bindingsInputBindingDef[] | nullCross-WorkPlan input bindings parsed from config.
schedule_overridesobject | nullPer-client schedule override map (from job_definition DB; clientId -> {cron_expr, timezone, skip_weekends, holiday_calendar}). Null for blueprint-backed plans.
per_client_overridesobject | nullPer-client input and context overrides map. Null for blueprint-backed plans.
statusrequired"draft" | "active" | "paused" | "archived"Status for workstream entities.
draftactivepausedarchived
enabledboolean | nullScheduler gate of a job-backed WorkPlan (false = paused, no scheduled fires). Null for blueprint-backed plans.
last_run_atstring (date-time) | nullMost recent cycle start for this WorkPlan (null if never run). On the single-plan read it is the newest of each cycle's start or creation time and is not last_cycle_at. On the list and on GET /jobs it is the plan's stored last-run time.
next_run_atstring (date-time) | nullNext scheduled execution — computed; see GET /workplans/{id}/next-run (P1)
created_bystring (uuid) | nullCreator user ID (owner_id in DB)
created_atrequiredstring (date-time)Creation timestamp
updated_atrequiredstring (date-time)Last update timestamp
descriptionstring | nullWhat the job-backed WorkPlan is for. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
domainstring | nullDomain the job-backed WorkPlan was created from. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
goal_templatestring | nullGoal the job-backed WorkPlan works towards. Returned by GET /workplans/{id}; null in the list.
toolsstring[] | nullTools the job-backed WorkPlan may use. Returned by GET /workplans/{id}; null in the list.
deliverablesobject[] | nullDeliverables the job-backed WorkPlan produces. Returned by GET /workplans/{id}; null in the list.
max_turnsinteger | nullTurn limit of one run of the job-backed WorkPlan. Returned by GET /workplans/{id}; null in the list.
max_cost_usdnumber | nullCost limit in USD of one run of the job-backed WorkPlan. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
source_tracingboolean | nullWhether runs of the job-backed WorkPlan trace their sources. Returned by GET /workplans/{id}; null in the list.
default_contextobject | nullRun context the job-backed WorkPlan starts every run with. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
input_source_mapobject | nullThe create-time map of where each declared input comes from; this is what POST /workplans calls input_bindings. The input_bindings field on this model is the separate hand-authored list. Returned by GET /workplans/{id}; null in the list.
autonomy_configAutonomyConfig | nullFine-grained autonomy controls of the job-backed WorkPlan. Returned by GET /workplans/{id}; null in the list.
is_enabledboolean | nullThis is an alias of enabled, for migration from GET /jobs/{id}; enabled is the canonical name. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
not_ready_policystring | nullWhat a run does when an input is not ready. Returned by GET /workplans/{id}; null in the list.
skip_weekendsboolean | nullWhether scheduled fires move off weekends. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
holiday_calendarstring | nullHoliday calendar that scheduled fires avoid. Returned by GET /workplans/{id}; null in the list.
trigger_typestring | nullWhat starts a run: manual, schedule, webhook, email or api. Present on the list and single-plan read. A plan created as a job returns the value on both the list and the single-plan read; an old-style blueprint returns null.
schedule_specobject | nullStructured schedule of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
updated_bystring | nullWho last edited the WorkPlan. Returned by GET /workplans/{id}; null in the list.
created_by_namestring | nullDisplay name of who created the WorkPlan. Returned by GET /workplans/{id}; null in the list.
updated_by_namestring | nullDisplay name of who last edited the WorkPlan. Returned by GET /workplans/{id}; null in the list.
current_versioninteger | nullHighest saved version of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
workstream_current_versioninteger | nullHighest version of the WorkPlan's WorkStream. Returned by GET /workplans/{id}; null in the list.
pinned_workstream_versioninteger | nullWorkStream version the WorkPlan is pinned to. Returned by GET /workplans/{id}; null in the list.
upstream_update_availableboolean | nullWhether the WorkStream has a version newer than the pin. Returned by GET /workplans/{id}; null in the list.
cost_so_far_gbpnumber | nullCost of all cycles so far in GBP, null when none has started. Returned by GET /workplans/{id}; null in the list.
hourly_rate_gbpnumber | nullHourly rate in GBP that cost_so_far_gbp was billed at. Returned by GET /workplans/{id}; null in the list.
total_runsinteger | nullNumber of cycles the WorkPlan has had; counts every cycle. Returned by GET /workplans/{id}; null in the list.
active_runsinteger | nullNumber of cycles still in flight; counts every cycle of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
last_cycle_atany | nullThe start time of the newest cycle of the WorkPlan; this is not last_run_at. Returned by GET /workplans/{id}; null in the list.
last_cycle_statestring | nullStatus of the newest cycle, read from every cycle of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
latest_cycle_launch_idstring (uuid) | nullId of the newest cycle launch of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
latest_cycle_launch_permakeystring | nullPermakey of the newest cycle launch of the WorkPlan. Returned by GET /workplans/{id}; null in the list.
latest_cycle_launch_workstream_idstring (uuid) | nullId of the WorkStream of the newest cycle launch. Returned by GET /workplans/{id}; null in the list.
latest_cycle_launch_workstream_permakeystring | nullPermakey of the WorkStream of the newest cycle launch. Returned by GET /workplans/{id}; null in the list.