POST 校验我的私有模板工作簿
POST /loom/v1/users/me/templates/{template}/versions/{version}:validateWorkbook 校验我的私有模板工作簿
所属分组:User Templates · 用户私有模板
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
POST/loom/v1/users/me/templates/{template}/versions/{version}:validateWorkbookValidate my private template workbook
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
template必填 | path / any | Private template ID |
version必填 | path / any | Private template version ID |
请求体 · 必填
Workbook validation 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}:validateWorkbook' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"callbackUrl": "string",
"clientRequestId": "string",
"content": [
0
],
"filename": "string",
"recordCount": 0
}'响应
200 OK
application/json
| 字段 | 类型 | 说明 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fileErrors | array | 展开结构
数组元素
| ||||||||||||
rowErrors | array | 展开结构
数组元素
| ||||||||||||
valid | boolean |
{
"fileErrors": [
"string"
],
"rowErrors": [
{
"error": "string",
"fieldKey": "string",
"rowIndex": 0
}
],
"valid": false
}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"
}