POST 运行我的私有模板工作簿
POST /loom/v1/users/me/templates/{template}/versions/{version}:runWorkbook 运行我的私有模板工作簿
所属分组:User Templates · 用户私有模板
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
POST/loom/v1/users/me/templates/{template}/versions/{version}:runWorkbookRun my private template workbook
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
template必填 | path / any | Private template ID |
version必填 | path / any | Private template version ID |
请求体 · 必填
Workbook run request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
callbackUrl | string | |
clientRequestId | string | |
content | array | 展开结构
数组元素
|
filename | string | |
recordCount | integer |
{
"callbackUrl": "string",
"clientRequestId": "string",
"content": [
0
],
"filename": "string",
"recordCount": 0
}请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}/versions/{version}:runWorkbook' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"callbackUrl": "string",
"clientRequestId": "string",
"content": [
0
],
"filename": "string",
"recordCount": 0
}'响应
201 Created
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
acceptedAtUnix | integer | |
runId | string | |
status | string |
{
"acceptedAtUnix": 0,
"runId": "string",
"status": "string"
}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"
}404 Not Found
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}