Create a automation workflow action
curl --request POST \
--url https://app.teable.io/api/base/%7BbaseId%7D/workflow/%7BworkflowId%7D/action \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"name":"string","description":"string","config":null,"parentNodeId":"string","type":"sendEmail"}'
{
"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 created
The response is of type object
.
curl --request POST \
--url https://app.teable.io/api/base/%7BbaseId%7D/workflow/%7BworkflowId%7D/action \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"name":"string","description":"string","config":null,"parentNodeId":"string","type":"sendEmail"}'
{
"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"
}