Goal

Export a completed goal subtree as a portable template

T143. Template-local ids (0-based) replace database ids; the template is self-contained. Optionally persisted as a GLOBAL (or tenant) workspace reference context for cross-project reuse.

post/api/goal/export-template

Request

  • Base URL: http://localhost:38200
  • URL: http://localhost:38200/api/goal/export-template
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Request body

root_node_idinteger required
save_as_contextboolean
save_globalboolean

Requires write scope; persists to the GLOBAL workspace instead of the caller's tenant.

Response

Export result.

contextIdinteger nullable
externalIdstring nullable
warningstring

Present when save_global=true was used.

Changes

No recorded changes to this operation across all 1 revision of this API.