duplicate a automation workflow action
curl --request POST \
--url https://app.teable.io/api/base/%7BbaseId%7D/workflow/%7BworkflowId%7D/action/%7BactionId%7D/duplicate \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
"name": "<string>",
"description": "<string>",
"config": {
"baseId": "<string>",
"tableId": "<string>",
"loopKey": {
"resolvable": true,
"type": "fact",
"path": "<string>",
"keyStack": [
"<string>"
],
"params": {
"pipes": [
"uppercase"
]
},
"fact": "<string>"
},
"fields": {},
"_fieldsOrder": [
"<string>"
]
},
"id": "<string>",
"category": "action",
"testResult": {
"spent": 123,
"inputRaw": "<any>",
"outputRaw": "<any>",
"inputVariables": {},
"outputVariables": {},
"errorMsg": "<string>",
"createdTime": "<string>"
},
"outputVariables": {},
"inputVariables": {},
"createdTime": "<string>",
"lastModifiedTime": "<string>",
"type": "createRecord"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful duplicate
The response is of type object
.
curl --request POST \
--url https://app.teable.io/api/base/%7BbaseId%7D/workflow/%7BworkflowId%7D/action/%7BactionId%7D/duplicate \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
"name": "<string>",
"description": "<string>",
"config": {
"baseId": "<string>",
"tableId": "<string>",
"loopKey": {
"resolvable": true,
"type": "fact",
"path": "<string>",
"keyStack": [
"<string>"
],
"params": {
"pipes": [
"uppercase"
]
},
"fact": "<string>"
},
"fields": {},
"_fieldsOrder": [
"<string>"
]
},
"id": "<string>",
"category": "action",
"testResult": {
"spent": 123,
"inputRaw": "<any>",
"outputRaw": "<any>",
"inputVariables": {},
"outputVariables": {},
"errorMsg": "<string>",
"createdTime": "<string>"
},
"outputVariables": {},
"inputVariables": {},
"createdTime": "<string>",
"lastModifiedTime": "<string>",
"type": "createRecord"
}