POST 上传编排输入
POST /loom/v1/orchestrationInputs:upload 上传编排输入
所属分组:Input Assets · 输入资产
Uploads a flat JSONL execution input through Product API. The returned inputFileId is the only file ID accepted by template run APIs; inputAssetId values from /inputAssets:upload are not valid here.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
POST/loom/v1/orchestrationInputs:uploadUpload orchestration input
Uploads a flat JSONL execution input through Product API. The returned inputFileId is the only file ID accepted by template run APIs; inputAssetId values from /inputAssets:upload are not valid here.
请求体 · 必填
Orchestration input upload request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
content | stringbase64 | |
filename | string |
{
"content": "string",
"filename": "string"
}请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/orchestrationInputs:upload' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"content": "string",
"filename": "string"
}'响应
201 Created
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
filename | string | |
inputFileId | string | |
rowCount | integer | |
uploadedAt | integer |
{
"filename": "string",
"inputFileId": "string",
"rowCount": 0,
"uploadedAt": 0
}400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}