POST
/
base
/
{baseId}
/
workflow
curl --request POST \
  --url https://app.teable.cn/api/base/%7BbaseId%7D/workflow \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"name":"string","description":"string"}'
{
  "id": "<string>",
  "baseId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "hasDraft": true,
  "isActive": true,
  "edges": [
    {
      "source": "<string>",
      "target": "<string>"
    }
  ],
  "nodes": [
    {}
  ],
  "createdBy": "<string>",
  "createdTime": "<string>",
  "lastModifiedTime": "<string>",
  "lastModifiedBy": "<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

Body

application/json
name
string
description
string

Response

201 - application/json
Successful created
id
string
required

a unique identifier for the workflow

baseId
string
required

the base id of the workflow

edges
object[]
required

edges of the nodes

nodes
object[]
required

nodes list include trigger and actions

createdBy
string
required

created by user id

createdTime
string
required

created time of the workflow

name
string

the name of the workflow

description
string

description of the workflow

hasDraft
boolean

has draft of the workflow

isActive
boolean

is active of the workflow

lastModifiedTime
string

last modified time of the workflow

lastModifiedBy
string

last modified by user id