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
}
}Create a new template from an existing workflow’s configuration
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
}
}API key for authentication
Body
Request body for saving a workflow's config as a template (new or existing)
Source workflow ID to extract config from
Name for the new template (required if templateId is not set)
1 - 255Description for the new template
2000Existing template ID to add a new version to (mutually exclusive with name)