OpenMeta 中文版
首页文档OpenAPI关于
首页文档OpenAPI关于
Github
  1. Import
  • Model APIs
    • copyById
      POST
    • copyByIdAndFetch
      POST
    • copyByIds
      POST
    • copyByIdsAndFetch
      POST
    • count
      POST
    • createList
      POST
    • createListAndFetch
      POST
    • createOne
      POST
    • createOneAndFetch
      POST
    • deleteById
      POST
    • deleteByIds
      POST
    • deleteBySliceId
      POST
    • getById
      POST
    • getByIds
      POST
    • getCopyableFields
      GET
    • getRowFiles
      GET
    • getUnmaskedField
      GET
    • getUnmaskedFields
      GET
    • searchList
      POST
    • searchName
      POST
    • searchPage
      POST
    • searchPivot
      POST
    • searchSimpleAgg
      POST
    • updateByFilter
      POST
    • updateList
      POST
    • updateListAndFetch
      POST
    • updateOne
      POST
    • updateOneAndFetch
      POST
    • uploadFile
      POST
    • uploadFileToRow
      POST
  • Toolkit
    • fixUnencryptedData
    • recompute
    • validateExpression
  • ChangeLog
    • getChangeLog
    • getSliceChangeLog
    • searchPage
    • searchPageByModel
  • Export Template
    • listByModel
  • File Record
    • getByFileId
  • Import Template
    • getTemplateFile
    • listByModel
  • SysPreData
    • loadData
    • uploadFile
  • SysView
    • getModelViews
    • setDefaultView
  • Data Export
    • dynamicExport
    • exportByFileTemplate
    • exportByTemplate
  • Import
    • importWithoutTemplate
      POST
    • importByTemplate
      POST
  • Metadata Upgrade API
    • reload
    • upgrade
  • DeptInfo
    • readCustomize
  • DocumentTemplate
    • generateDocument
  • SysModel
    • getModelFields
  • SysOptionSet
    • getOptionSetItems
  • AiRobot
    • Chat API
    • Stream Chat
  • FlowConfig
    • getByModel
    • getFlowById
  • SysCron
    • Execute multiple for once now
    • Execute once now
  • Flow Automation
    • API Event
    • Onchange Event
    • Simulate Event Message
  • DesignAppEnv
    • getNotVersionedChanges
    • mergeBetweenEnv
    • previewBetweenEnv
  • DesignAppVersion
    • createOne
    • publish
    • reloadAppVersion
  • DesignModel
    • downloadCode
    • downloadZip
    • previewCode
    • previewDDL
  • RPC
    • RPC
  1. Import

importWithoutTemplate

POST
https://demo.openmeta.info/api/demo/import/dynamicImport
Import
Import data from the uploaded file

请求参数

Query 参数
customHandler
string 
可选
Custom Handler
file
file 
可选
headerRows
integer <int32>
可选
Number of header rows
默认值:
1
示例值:
1
ignoreEmpty
boolean 
可选
Whether to ignore empty values
importFieldStr
string 
可选
JSON string of the import fields info. e.g.
[{"header": "Product Code", "fieldName": "productCode", "required": true},
{"header": "Product Name", "fieldName": "productName", "required": true}]
importRule
enum<string> 
可选
Import Rule
枚举值:
CreateOrUpdateOnlyUpdateOnlyCreate
modelName
string 
可选
Model name
skipException
boolean 
可选
Whether to continue importing next row data when encountering error.
syncImport
boolean 
可选
Synchronous Import
uniqueConstraints
string 
可选
Unique Constraints

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.openmeta.info/api/demo/import/dynamicImport'

返回响应

🟢200成功
*/*
OK
Body
code
integer <int32>
响应状态码
可选
data
object (FileInfo) 
结果数据
可选
checksum
string 
Checksum
可选
fileId
string 
File ID
可选
fileName
string 
File Name
可选
fileType
enum<string> 
File Type
可选
枚举值:
JPGPNGWEBPBMPTIFSVGGIFICOCSVTXTDOCDOCXPPTPPTXXLSXLSXPDFJSONXMLYAMLZIPGZIPTARRARGZMP3WAVAACOGGFLACMP4AVIMOVWMVFLV
size
integer <int32>
可选
File Size (KB)
url
string 
可选
Temporary Download URL
message
string 
普通消息
可选
示例
{
    "code": 0,
    "data": {
        "checksum": "string",
        "fileId": "string",
        "fileName": "string",
        "fileType": "JPG",
        "size": 0,
        "url": "string"
    },
    "message": "string"
}
修改于 2025-04-04 11:36:34
上一页
exportByTemplate
下一页
importByTemplate
Built with