跳转到主要内容
POST
/
base
/
{baseId}
/
workflow
/
{workflowId}
/
action
/
{actionId}
/
duplicate
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/workflow/{workflowId}/action/{actionId}/duplicate \
  --header 'Authorization: Bearer <token>'
{
  "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.

Path Parameters

baseId
string
required
workflowId
string
required
actionId
string
required

Response

200 - application/json

Successful duplicate

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