OkayAPI Docs


API Path: /api/App/Table/MultiCreate

API Description: PatchC Import multi data records and return import result detail.

2
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
model_nameStringRequiredYour table Model Name
datasArrayJSON FormatRequired批量导入的数据。特别注意!这是复数datas,即需要传递是的单个创建时的数组的数组。格式为JSON,即:datas=[单个创建时的数据1, 单个创建时的数据2, ...]。一次最多只允许导入1000条数据。数据中的uuid将优先于model_uuid参数。JSON Parser Online

API Debug

KEYREQUIREDVALUE
app_key *Required
model_name *Required
datas *Required

API Response

KEYTypeDescription
err_codeInt状态操作码,0导入成功;1导入失败(如表不存在);2应用层规则拦截,拦截后可以小白开放平台查看日记
err_msgString错误提示信息,err_code非0时参考此提示信息
totalInt本次导入的总数量
import_numInt成功导入的数量
not_import_numInt导入失败的数量
detailsArray导入过程中的操作纪录
details[].idInt导入的ID,从1开始
details[].new_idInt数据添加成功时的纪录ID,失败时为0
details[].msgString导入的结果

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error