Create a Template
Create a template, then publish a version with the configuration you want:Save a Workflow as a Template
Create a template from an existing workflow’s configuration:includeParts parameter controls which parts of the workflow’s configuration to capture. If omitted, all parts are included. The source workflow is automatically linked to the template.
You can also add a new version to an existing template by passing templateId instead of name:
Publish a New Version
Every time you save changes to a template, a new version is published. Versions are immutable.If a version includes a schema, you can provide fields inline with
schemaFields and schemaEntity, or reference an existing schema with schemaId. These are mutually exclusive.Link Workflows
Associate existing workflows with a template. Linking applies the template’s latest version to the workflow and makes the template-managed parts read-only.409 conflict with details:
force: true to relink the workflow.
Unlink Workflows
Remove the template association from workflows. The workflow keeps its current configuration — the prompt, schema, and notifications become editable again.Apply Updates
When you publish a new template version, linked workflows are not updated automatically. Apply a specific version to workflows:List Templates
Get Template Details
Retrieve a template with all its published versions:List Linked Workflows
See which workflows are linked to a template and whether they’re on the latest version:isOutdated flag indicating whether a newer template version is available.