OkayAPI Docs


API Path: /api/App/Table/MultiFastCreate

API Description: PatchC FAST to import multi new data records without any detail. You can also set SYSTEM fields: id, add_time, update_time, ext_data(JSON).

3
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条数据。
is_ignoreBooleanOptaiontrue是否启用IGNORE,1是0否,其中:
  • 若为是,则在创建时判断是否存在相同的数据,并且重复时忽略跳过,最终结果是部分或全部成功创建;
  • 若为若,则不管是否存均进行创建,如果有唯一索引或其他原因导致失败将会全部创建不成功。

API Debug

KEYREQUIREDVALUE
app_key *Required
model_name *Required
datas *Required
is_ignore Option

API Response

KEYTypeDescription
err_codeInt状态操作码,0导入成功;1导入失败(如表不存在);2应用层规则拦截,拦截后可以小白开放平台查看日记
err_msgString错误提示信息,err_code非0时参考此提示信息
totalInt本次导入的总数量

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