Schema
WorkstreamExportPayload
The portable definition of a workstream — everything needed to reconstruct it in another workspace or environment. Produced by ``GET /templates/{id}/export`` and consumed by ``POST /templates/import``. The shape is a superset of ``TemplateCreate`` with provenance metadata so the receiving workspace knows where the definition came from.
| Field | Type | Description |
|---|---|---|
schema_version | string | Export format version. Bumped if the shape evolves. |
namerequired | string | — |
description | string | null | — |
source_description | string | null | — |
source_name | string | null | — |
category | "compliance" | "advisory" | "audit" | "bookkeeping" | "tax" | "internal" | null | — |
steps | object[] | —item shapeEmpty object. |
default_config | object | —show nestedEmpty object. |
tags | string[] | — |
input_schema | object[] | —item shapeEmpty object. |
output_schema | object[] | —item shapeEmpty object. |
execution_mode | string | null | — |
jurisdictions | string[] | null | — |
goal_spec | GoalSpecPayload | object | null | — |
accounting_ledger | "off" | "optional" | "required" | Portable opt-in Accounting Ledger capability.offoptionalrequired |
source | object | Provenance: where this export came from. Includes {workspace_id, workstream_id, version, exported_at, exported_by}. The import endpoint stores this in forked_from so the receiving workspace can trace lineage.show nestedEmpty object. |