POST
/
api
/
workflows
/
{workflowName}
/
package
上传 workflow 压缩包
curl --request POST \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/package \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream' \
  --data '"<string>"'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "workflowId": "<string>",
    "workflowName": "<string>",
    "archiveName": "<string>",
    "sourceHash": "<string>",
    "build": {
      "startedAt": "2023-11-07T05:31:56Z",
      "endedAt": "2023-11-07T05:31:56Z",
      "durationMs": 123,
      "stdout": "<string>",
      "stderr": "<string>",
      "error": "<string>"
    },
    "nextVersion": "<string>"
  }
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required

Query Parameters

fileName
string
mode
enum<string>

设置为 create 时只创建,不按普通上传覆盖。

Available options:
create

Body

application/octet-stream

The body is of type file.

Response

200 - application/json

上传并构建结果。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required