Schema
TemplateUpdate
Request to update a template.
| Field | Type | Description |
|---|---|---|
name | string | null | Template name |
description | string | null | Template description |
source_description | string | null | The definition's own text, verbatim. |
source_name | string | null | The definition's own name, verbatim. |
category | "compliance" | "advisory" | "audit" | "bookkeeping" | "tax" | "internal" | null | Template category (closed taxonomy; off-taxonomy input is mapped) |
steps | TaskStepDefinition | ToolCallStepDefinition | ArchieQueryStepDefinition | NotifyStepDefinition | ConditionalStepDefinition | LoopStepDefinition | ParallelStepDefinition | ApprovalStepDefinition | DocumentUploadStepDefinition | StageStepDefinition | GotoStepDefinition | SubWorkStreamStepDefinition | DeterministicExtractionStepDefinition | VerificationStepDefinition | EmailSendStepDefinition | WaitForReplyStepDefinition | SkillStepDefinition | AgentRunStepDefinition | WaitStepDefinition | WebhookStepDefinition | FormStepDefinition | FileStepDefinition[] | null | WDL step definitions |
tags | string[] | null | Template tags |
input_schema | object[] | null | Declared workstream inputs (array of InputDef). |
output_schema | object[] | null | Declared workstream outputs (array of OutputDef). |
inputs_required | any[] | null | Declared inputs the WorkStream needs before it can run. |
data_files | object | null | Data files kept with the WorkStream: layouts/<name>.json to a JSON object. Omit to leave them unchanged; {} removes every file. |
runner_config | object | null | Runner settings. |
execution_mode | "inline" | "containerized" | null | How the WorkStream runs. |
jurisdictions | string[] | null | Applicable jurisdictions. |
status | "draft" | "active" | "paused" | "archived" | null | Template status |
goal_spec | GoalSpecPayload | null | Goal contract scored by the deterministic goal gate. Omit to leave the existing goal untouched; the tolerances a reviewer already approved must not change just because an unrelated field did. |
spec | Spec | null | The WSS spec (decisions + compiled bindings) for the new version. Persisted with spec_hash and definition_hash on the version snapshot. Every cited document_id must be an upload in this workspace. Omit to keep the latest version's spec (definition_hash recomputed over the new steps). |
change_summary | string | null | Caller-supplied version-history note (e.g. 'Revised from cycle <id>: …'). Falls back to the auto-computed field list when omitted. |
accounting_ledger | "off" | "optional" | "required" | null | Change the Cycle Accounting Ledger capability. Omit to preserve it; use off for WorkStreams that do not need a Ledger. |
shared_with_user_ids | string[] | null | User IDs granted editor rights to this workstream definition. |
expected_head | string | null | The head of the working branch the caller loaded (`working_branch_head` of the read). A managed save is refused with 409 `stale_head` when the branch has moved on; the query parameter of the same name wins when both are sent. |
expected_version | integer | null | The version the caller read and reviewed. When given, the update is written only if the WorkStream is still at exactly this version; otherwise nothing is written and the response is 409 with error_code 'template_version_changed' and the current version. Omit for the previous last-write-wins behaviour. |