POST
/
base
/
{baseId}
/
workflow
/
{workflowId}
/
logic
curl --request POST \
  --url https://app.teable.cn/api/base/%7BbaseId%7D/workflow/%7BworkflowId%7D/logic \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"name":"string","description":"string","config":null,"parentNodeId":"string","type":"condition"}'
{
  "logic": {
    "name": "<string>",
    "description": "<string>",
    "config": {
      "conditions": {}
    },
    "id": "<string>",
    "category": "logic",
    "testResult": {
      "spent": 123,
      "inputRaw": "<any>",
      "outputRaw": "<any>",
      "inputVariables": {},
      "outputVariables": {},
      "errorMsg": "<string>",
      "createdTime": "<string>"
    },
    "outputVariables": {},
    "inputVariables": {},
    "createdTime": "<string>",
    "lastModifiedTime": "<string>",
    "type": "condition"
  },
  "controls": [
    {
      "name": "<string>",
      "config": {
        "sourceNodeId": "<string>"
      },
      "id": "<string>",
      "category": "control",
      "createdTime": "<string>",
      "lastModifiedTime": "<string>",
      "type": "conditionEnd"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
parentNodeId
string
required

witch node this the parent, if not provided, it is a root node

type
enum<string>
required

type of logic

Available options:
condition,
Repeat
name
string

name of the node

description
string

description of the node

config
any | null

node configuration

Response

201 - application/json
Successful created
logic
object
required
controls
object[]
required

workflow control nodes, contains the logic branch and the end node