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

TemplateUpdate

Request to update a template.

FieldTypeDescription
namestring | nullTemplate name
descriptionstring | nullTemplate description
source_descriptionstring | nullThe definition's own text, verbatim.
source_namestring | nullThe definition's own name, verbatim.
category"compliance" | "advisory" | "audit" | "bookkeeping" | "tax" | "internal" | nullTemplate category (closed taxonomy; off-taxonomy input is mapped)
stepsTaskStepDefinition | ToolCallStepDefinition | ArchieQueryStepDefinition | NotifyStepDefinition | ConditionalStepDefinition | LoopStepDefinition | ParallelStepDefinition | ApprovalStepDefinition | DocumentUploadStepDefinition | StageStepDefinition | GotoStepDefinition | SubWorkStreamStepDefinition | DeterministicExtractionStepDefinition | VerificationStepDefinition | EmailSendStepDefinition | WaitForReplyStepDefinition | SkillStepDefinition | AgentRunStepDefinition | WaitStepDefinition | WebhookStepDefinition | FormStepDefinition | FileStepDefinition[] | nullWDL step definitions
tagsstring[] | nullTemplate tags
input_schemaobject[] | nullDeclared workstream inputs (array of InputDef).
output_schemaobject[] | nullDeclared workstream outputs (array of OutputDef).
inputs_requiredany[] | nullDeclared inputs the WorkStream needs before it can run.
data_filesobject | nullData files kept with the WorkStream: layouts/<name>.json to a JSON object. Omit to leave them unchanged; {} removes every file.
runner_configobject | nullRunner settings.
execution_mode"inline" | "containerized" | nullHow the WorkStream runs.
jurisdictionsstring[] | nullApplicable jurisdictions.
status"draft" | "active" | "paused" | "archived" | nullTemplate status
goal_specGoalSpecPayload | nullGoal 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.
specSpec | nullThe 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_summarystring | nullCaller-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" | nullChange the Cycle Accounting Ledger capability. Omit to preserve it; use off for WorkStreams that do not need a Ledger.
shared_with_user_idsstring[] | nullUser IDs granted editor rights to this workstream definition.
expected_headstring | nullThe 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_versioninteger | nullThe 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.