English
Create a automation workflow logic
cURL
curl --request POST \ --url http://127.0.0.1:3000/api/base/{baseId}/workflow/{workflowId}/logic \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "parentNodeId": "<string>", "type": "condition", "name": "<string>", "description": "<string>", "config": "<unknown>" } '
{ "logic": { "config": { "conditions": {} }, "id": "<string>", "category": "logic", "type": "condition", "name": "<string>", "description": "<string>", "testResult": { "createdTime": "<string>", "spent": 123, "inputRaw": "<unknown>", "outputRaw": "<unknown>", "inputVariables": {}, "outputVariables": {}, "errorMsg": "<string>" }, "outputVariables": {}, "inputVariables": {}, "createdTime": "<string>", "lastModifiedTime": "<string>" }, "controls": [ { "config": { "sourceNodeId": "<string>" }, "id": "<string>", "category": "control", "type": "conditionEnd", "name": "<string>", "createdTime": "<string>", "lastModifiedTime": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
witch node this the parent, if not provided, it is a root node
type of logic
condition
Repeat
name of the node
description of the node
node configuration
Successful created
Show child attributes
workflow control nodes, contains the logic branch and the end node
Was this page helpful?