跳转到主要内容
POST
/
base
/
{baseId}
/
workflow
/
{workflowId}
/
trigger
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/workflow/{workflowId}/trigger \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "recordCreated",
  "name": "<string>",
  "description": "<string>",
  "config": "<unknown>"
}
'
{}

Authorizations

Authorization
string
header
required

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

Path Parameters

baseId
string
required
workflowId
string
required

Body

application/json
type
enum<string>
required

type of trigger

可用选项:
recordCreated,
recordUpdated,
recordCreatedOrUpdated,
buttonClick,
formSubmitted,
scheduledTime
name
string

name of the node

description
string

description of the node

config
any | null

node configuration

Response

201 - application/json

Successful created

The response is of type object.