跳转到主要内容
POST
Add trigger

请求头

X-Workspace-Id
string

Workspace ID

路径参数

id
string
必填

请求体

application/json
projectWorkflowId
string
必填

Project workflow (binding) the trigger runs

type
enum<string>
必填
可用选项:
cron,
assets_added
cron
string

5-field cron (UTC); required for cron triggers

示例:

"0 2 * * 1"

config
object
enabled
boolean
默认值:true

响应

200 - application/json
id
string
必填
createdAt
string<date-time>
必填
updatedAt
string<date-time>
必填
projectWorkflowId
string
必填
type
enum<string>
必填
可用选项:
cron,
assets_added
config
object
必填
enabled
boolean
必填
cron
string | null
lastFiredAt
string<date-time> | null