POST
/
api
/
workflows
/
{workflowName}
/
files
上传运行附件
curl --request POST \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream' \
  --data '"<string>"'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "mimeType": "<string>",
      "size": 123,
      "storage": "server",
      "createdAt": "2023-11-07T05:31:56Z",
      "workflowId": "<string>",
      "conversationId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workflowName
string
required

Query Parameters

fileName
string
mimeType
string
conversationId
string

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