跳转到主要内容
POST
Add workflow

请求头

X-Workspace-Id
string

Workspace ID

路径参数

id
string
必填

请求体

application/json
name
string
template
string

File name of a default workflow to copy the jobs from

示例:

"vulnerability_scan_basic.yaml"

tools
object[]
copyFromProjectWorkflowId
string

Project workflow (binding) of any project to copy

on
object

When the workflow runs on its own: schedules and "assets added"

响应

200 - application/json
id
string
必填
createdAt
string<date-time>
必填
updatedAt
string<date-time>
必填
projectId
string
必填
workflow
object
必填
workflowId
string
必填
triggers
object[]
lastRun
object | null