1.The minimum interval for requests with the same parameters is 10 seconds. 2.The duration of a single uploaded file shall not exceed 10 minutes. 3.Please save the deviceId and uuid returned by this interface, as these parameters are required when canceling the upload. 4.Please listen for upload start, failure, and upload success events on your FTP server for file status management.
Authorization: ********************{
"deviceId": "string",
"channelId": 0,
"startTime": "string",
"endTime": "string",
"ftpIp": "string",
"ftpPort": 0,
"ftpUserName": "string",
"ftpPassword": "string",
"ftpUploadFilePath": "string"
}curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/video/custom/history/upload' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"channelId": 0,
"startTime": "string",
"endTime": "string",
"ftpIp": "string",
"ftpPort": 0,
"ftpUserName": "string",
"ftpPassword": "string",
"ftpUploadFilePath": "string"
}'{
"code": 0,
"data": {
"deviceId": "",
"uuid": ""
},
"msg": ""
}