API 列表
- record
- space
- base
- view
- trash
- field
- dashboard
- aggregation
- table
- selection
- plan
- attachments
- user
- auth
- db-connection
- invitation
- share
- notification
- access-token
- import
- export
- pin
- billing
- admin
- usage
- oauth
- plugin
- comment
- organization
- ai
- integrity
- automation
- GETGet base workflow action
- PUTPut base workflow action
- DELDelete base workflow action
- POSTPost base workflow action
- POSTPost base workflow action duplicate
- GETGet base workflow logic
- PUTPut base workflow logic
- DELDelete base workflow logic
- POSTPost base workflow logic
- GETGet base workflow trigger
- PUTPut base workflow trigger
- POSTPost base workflow trigger
- GETGet base workflow
- PUTPut base workflow
- DELDelete base workflow
- GETGet base workflow 1
- POSTPost base workflow
- PUTPut base workflow active
- GETGet base workflow run
- GETGet base workflow run 1
- PUTPut base workflow test
- PUTPut base workflow order
- POSTPost base workflow filter link records
- POSTPost base workflow duplicate
- GET
- authority-matrix
- enterprise
- space-manage
- API Reference
automation
Post base workflow logic
automation
Post base workflow logic
Create a automation workflow logic
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
witch node this the parent, if not provided, it is a root node
type of logic
Available options:
condition
, Repeat
name of the node
description of the node
node configuration
Response
201 - application/json
Successful created
node id
Available options:
logic
Condition logic
Available options:
condition
name of the node
description of the node
action test result
spent time
The variables snapshot when executed
The variables snapshot when executed
output variables
input variables
created time
last modified time
workflow control nodes, contains the logic branch and the end node
node id
Available options:
control
Available options:
conditionEnd
, triggerEnd
, repeatEnd
name of the node
created time
last modified time
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"
}
]
}