/
Bulk Insert
Bulk Insert
[ 1 HTTP Request ] [ 1.1 Parameters ] [ 2 Request Example ] [ 3 Response Example ] [ 4 Sample Code ]
이 API는 tag name을 위시한 칼럼별로 데이터를 정렬하여 칼럼과 데이터 배열로 json을 구성하여 전송하는 방법이다. 모든 데이터에 칼럼명이 기록되지 않기 때문에 대량의 데이터를 빠르게 전송할 수 있다.
HTTP Request
POST https://${CloudVendor}.${CountryCode}.machlake.com/lakes/${lake_id}/values/bulk
Content-Type: application/json; charset=utf8
x-api-key: {API Key}
{
"date_format" : "{date_format}",
"values" : [["{tag_name1}", "{time1}", {value1}], ["(tag_name2}", "{time2}", {value2}], ... ]
}
Parameters
no parameters
Request Example
POST https://aws1.us.machlake.com/lakes/xbacd1234/values/bulk
Content-Type: application/json; charset=utf8
x-api-key: {API Key}
{
"date_format" : "YYYY-MM-DD HH24:MI:SS",
"values" : [
["tag_01", "2021-07-06 12:12:25", 1625.0],
["tag_02", "2021-07-06 12:12:26", 1627.0],
["tag_02", "2021-07-06 12:12:27", 1629.0]
]
}
Response Example
Status 200
{
"status": "success",
"data": {
"fail": 0,
"success": 3
}
}
Sample Code
Related content
Update Tag
Update Tag
More like this
Create Tag
Create Tag
More like this
공공데이터 TAG NAME 명
공공데이터 TAG NAME 명
Read with this
Bulk Insert
Bulk Insert
More like this
데이터 입력
More like this
Create Lake
Create Lake
More like this