{
"file": "string"
}
curl --location --request POST '/lighthouse/admin/api/v1/ds/import?sheetName&envId' \
--header 'Lang: zh-CN' \
--header 'B-App-Id: {{B-App-Id}}' \
--header 'B-App-User-Id: {{B-App-User-Id}}' \
--header 'B-Origin-Domain: {{B-Origin-Domain}}' \
--header 'Cookie: {{Cookie}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"file": "string"
}'
{
"success": true,
"msg": "string",
"code": "string",
"content": [
{
"viewOptions": {
"dsId": "string",
"tableProps": [
{
"id": "string",
"width": 0,
"visible": true
}
],
"pagination": {
"pageSize": 0,
"currentPage": 0,
"custom": true
},
"joinConfig": {
"conditions": [
{
"joinedDsId": "string",
"joinType": "string",
"joinWhere": "string",
"joinConditions": [
{
"leftFieldId": "string",
"right": {
"type": "VARIABLE",
"fieldVariable": {
"dsId": "string",
"fieldId": "string"
},
"valueVariable": {
"value": {},
"type": "string"
},
"upstreamVariable": {
"nodeId": "string",
"fieldId": "string"
},
"fieldIdVariable": {
"fieldId": "string"
},
"systemVariable": {
"value": "TODAY",
"format": "string"
},
"userVariable": {
"fieldId": "string",
"format": "string"
},
"inputVariable": {
"blockId": "string",
"scope": "string"
},
"viewVariable": {
"fieldId": "string",
"format": "string"
},
"filterVariable": {
"blockId": "string",
"itemId": "string"
},
"argVariable": {
"nodeId": "string",
"argId": "string"
},
"selectDataSourceVariable": {
"dsId": "string",
"fieldId": "string",
"filter": {
"expression": {
"idVariable": {},
"operator": "string",
"paramList": [
{}
],
"where": "string",
"conditions": [
{}
]
}
},
"sorts": [
{
"id": "string",
"fieldId": "string",
"order": "ASC"
}
]
},
"pageLinkVariable": {
"value": {}
},
"formVariable": {
"fieldId": "string"
},
"resolvedVariable": {
"value": {},
"type": "string",
"innerType": "ARRAY"
},
"routePathVariable": {
"id": "string"
},
"routeQueryVariable": {
"id": "string"
},
"pageDataQueryVariable": {
"id": "string",
"itemId": "string"
},
"pageStateVariable": {
"id": "string"
},
"loopVariable": {
"value": "LOOP_TIMES"
}
},
"operator": "string"
}
],
"joinFields": [
{
"fieldId": "string",
"name": "string"
}
]
}
],
"primaryDsId": "string"
},
"analyticConfig": {
"edges": [
{
"id": "string",
"source": "string",
"target": "string",
"sourceHandle": "string",
"type": "string",
"success": true
}
],
"nodes": [
{
"id": "string",
"type": "DATA_INPUT",
"data": {
"empty": true,
"property1": {},
"property2": {}
},
"position": {
"x": 0,
"y": 0
}
}
]
},
"draftAnalyticConfig": {
"edges": [
{
"id": "string",
"source": "string",
"target": "string",
"sourceHandle": "string",
"type": "string",
"success": true
}
],
"nodes": [
{
"id": "string",
"type": "DATA_INPUT",
"data": {
"empty": true,
"property1": {},
"property2": {}
},
"position": {
"x": 0,
"y": 0
}
}
]
}
},
"name": "string",
"createdBy": "string",
"id": "string",
"appId": "string",
"appName": "string",
"schema": {
"property1": {
"dsId": "string",
"select": {
"sort": 0,
"multiple": true,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"singleSelect": {
"sort": 0,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"idConfig": {
"type": "CUSTOM",
"rules": [
{
"type": "DATE",
"length": 0,
"fixedCharacter": "string",
"dateFormat": "string"
}
]
},
"formula": {
"expression": "string"
},
"number": {
"accuracy": 0,
"prefix": "string",
"suffix": "string"
},
"date": {
"format": "string"
},
"person": {
"multiple": true
},
"join": {
"joinDsId": "string",
"joinFieldId": "string"
},
"id": "string",
"name": "string",
"dsName": "string",
"type": "string",
"innerType": "string"
},
"property2": {
"dsId": "string",
"select": {
"sort": 0,
"multiple": true,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"singleSelect": {
"sort": 0,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"idConfig": {
"type": "CUSTOM",
"rules": [
{
"type": "DATE",
"length": 0,
"fixedCharacter": "string",
"dateFormat": "string"
}
]
},
"formula": {
"expression": "string"
},
"number": {
"accuracy": 0,
"prefix": "string",
"suffix": "string"
},
"date": {
"format": "string"
},
"person": {
"multiple": true
},
"join": {
"joinDsId": "string",
"joinFieldId": "string"
},
"id": "string",
"name": "string",
"dsName": "string",
"type": "string",
"innerType": "string"
}
},
"type": 0,
"sync": true,
"syncAppId": "string",
"syncAppName": "string",
"syncDsId": "string",
"syncDsName": "string",
"syncEnvId": "string",
"syncEnvName": "string",
"primaryName": "string",
"envId": "string"
}
]
}