API ReferenceWorkflow templates
Path Parameters
routerId*string
Format
uuidworkflowTemplateId*string
Format
uuidRequest Body
application/json
Create workflow task payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8000/api/routers/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflow-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/tasks" \ -H "Content-Type: application/json" \ -d '{ "states": [ "todo" ], "name": "string", "type": "webhook" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"workflowTemplateId": "53e62d87-459b-4f1f-ae45-ffe2549e140f",
"tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
"workflowTemplateStepId": "a879ff5f-9d4b-4be0-8059-c8396f08174e",
"states": [
"todo"
],
"name": "string",
"type": "webhook",
"timing": "string",
"delay": -2147483648,
"recipient": {
"type": "ACTOR",
"value": "string"
},
"workflowTemplateActorId": "0baa9b35-b0c5-469a-a060-bbc9f7c2e759",
"webhookPayloadTemplate": "string",
"webhookHeadersTemplate": "string",
"webhookUrlTemplate": "string",
"smsPayloadTemplate": "string",
"emailSubjectTemplate": "string",
"emailBodyTemplate": "string",
"emailLogos": [
"string"
],
"emailCc": [
{
"type": "ACTOR",
"value": "string"
}
],
"emailBcc": [
{
"type": "ACTOR",
"value": "string"
}
],
"customFieldAttachments": []
}