跳转到主要内容
POST
/
api
/
v1
/
pipelines
创建流水线
curl --request POST \
  --url http://localhost:5300/api/v1/pipelines \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "config": {}
}
'
{
  "code": 0,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

授权

X-API-Key
string
header
必填

请求体

application/json
name
string
必填
config
object

响应

200 - application/json

创建成功

code
integer
示例:

0

data
object