Templates

Save workflow as template

Extract a workflow's prompt, schema, validation rules, and notifications into a new template or as a new version of an existing template. The source workflow is not modified (v1: no auto-link).

post/v4/templates/from-workflow

Request

  • Base URL: https://api.kadoa.com
  • URL: https://api.kadoa.com/v4/templates/from-workflow
  • Auth: API key in header x-api-key

Request body

workflowIdstring uuid required

Source workflow ID to extract config from

namestring

Name for the new template (required if templateId is not set)

descriptionstring

Description for the new template

templateIdstring uuid

Existing template ID to add a new version to (mutually exclusive with name)

includePartsstring[]

Which workflow parts to include in the template. If omitted, all parts are included.

Response

201

errorfalse required

Error flag (always false on success)

successtrue required

Success flag

Changes

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