Create Template
Authentication
Headers
Request
Display name for the template (1–200 characters, not blank).
Optional human-readable description shown in the gallery (max 2,000 characters).
Full workflow definition (graph + execution config). Validated at write time — structural errors are rejected with 422.
Response
Response shape. workspace_id is intentionally omitted so the gallery
endpoint (which returns rows from any workspace) does not leak tenant
ownership IDs across tenants. created_by is retained as author
provenance for public/starter rows.
definition is the serialized WorkflowDefinition JSONB (same shape as
Workflow.definition) — a template is a reusable workflow snapshot.

