跳转到主要内容
POST
/
base
/
{baseId}
/
workflow
/
{workflowId}
/
action
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/workflow/{workflowId}/action \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "parentNodeId": "<string>",
  "type": "sendEmail",
  "name": "<string>",
  "description": "<string>",
  "config": "<unknown>"
}
'
{
  "config": {
    "tableId": "<string>",
    "fields": {},
    "baseId": "<string>",
    "loopKey": {
      "resolvable": true,
      "type": "fact",
      "fact": "<string>",
      "path": "<string>",
      "keyStack": [
        "<string>"
      ],
      "params": {
        "pipes": [
          "uppercase"
        ]
      }
    },
    "_fieldsOrder": [
      "<string>"
    ]
  },
  "id": "<string>",
  "category": "action",
  "type": "createRecord",
  "name": "<string>",
  "description": "<string>",
  "testResult": {
    "createdTime": "<string>",
    "spent": 123,
    "inputRaw": "<unknown>",
    "outputRaw": "<unknown>",
    "inputVariables": {},
    "outputVariables": {},
    "errorMsg": "<string>"
  },
  "outputVariables": {},
  "inputVariables": {},
  "createdTime": "<string>",
  "lastModifiedTime": "<string>"
}

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 action

可用选项:
sendEmail,
createRecord,
updateRecord,
httpRequest,
getRecords,
aiGenerate,
script
name
string

name of the node

description
string

description of the node

config
any | null

node configuration

Response

201 - application/json

Successful created

config
object
required
id
string
required

node id

category
enum<string>
required
可用选项:
action
type
enum<string>
required

This Action will activate when a record is created in a table.

可用选项:
createRecord
name
string

name of the node

description
string

description of the node

testResult
object

action test result

outputVariables
object

output variables

inputVariables
object

input variables

createdTime
string | null

created time

lastModifiedTime
string | null

last modified time