Skip to main content
POST
/
v4
/
templates
/
from-workflow
Save workflow as template
curl --request POST \
  --url https://api.kadoa.com/v4/templates/from-workflow \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "workflowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "error": false,
  "success": true,
  "data": {
    "templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version": 123,
    "isNew": true
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json

Body

Request body for saving a workflow's config as a template (new or existing)

workflowId
string<uuid>
required

Source workflow ID to extract config from

name
string

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

Required string length: 1 - 255
description
string

Description for the new template

Maximum string length: 2000
templateId
string<uuid>

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

Response

201

Response for saving a workflow as a template

error
enum<boolean>
required

Error flag (always false on success)

Available options:
false
success
enum<boolean>
required

Success flag

Available options:
true
data
object
required