IotHub
  1. video
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
      POST
    • playBackList
      POST
    • historicalUpload
      POST
    • playBack
      POST
    • replaySet
      POST
    • taskPage
      POST
    • taskDelete
      POST
    • getNodes
      POST
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. video

taskPage

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/video/history/upload/task

Request

Header Params
Authorization
string 
required
Body Params application/json
pageSize
integer  | null 
optional
Default:
10
pageIndex
integer  | null 
optional
Default:
1
deviceIds
string  | null 
optional
deviceIds split by ,
status
integer  | null 
optional
0 failed 1 success 2 uploading 3 pending reply
startTime
string  | null 
optional
startTime yyyy-MM-dd HH:mm:ss Device Time Zone
The query interval must be less than 30 days
endTime
string  | null 
optional
endTime yyyy-MM-dd HH:mm:ss Device Time Zone
The query interval must be less than 30 days
fileStartTime
string  | null 
optional
Video file start time-start time
yyyy-MM-dd HH:mm:ss Device Time Zone
The query interval must be less than 30 days
fileEndTime
string  | null 
optional
Video file start time - end time
yyyy-MM-dd HH:mm:ss Device Time Zone
The query interval must be less than 30 days
taskId
string  | null 
optional
taskId
Example
{
    "pageSize": "10",
    "pageIndex": "1",
    "deviceIds": "string",
    "status": 0,
    "startTime": "string",
    "endTime": "string",
    "fileStartTime": "string",
    "fileEndTime": "string",
    "taskId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/video/history/upload/task' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageSize": "10",
    "pageIndex": "1",
    "deviceIds": "string",
    "status": 0,
    "startTime": "string",
    "endTime": "string",
    "fileStartTime": "string",
    "fileEndTime": "string",
    "taskId": "string"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
data
object (PageResult«ApiVideoHistoryFileVO») 
optional
records
array[object (ApiVideoHistoryFileVO) {11}]  | null 
optional
total
integer  | null 
optional
size
integer  | null 
optional
current
integer  | null 
optional
msg
string  | null 
optional
Example
{
  "code": 0,
  "data": {
    "records": [
      {
        "id": "",
        "deviceId": "",
        "channelId": 0,
        "status": 0,
        "fileUrl": "",
        "fileStartTime": "",
        "fileEndTime": "",
        "fileSize": 0.0,
        "fileUploadSize": 0.0,
        "createTime": "",
        "uploadTime": ""
      }
    ],
    "total": 0,
    "size": 0,
    "current": 0
  },
  "msg": ""
}
Modified at 2025-06-06 08:23:23
Previous
replaySet
Next
taskDelete
Built with