Home / Docs Center / Device API Reference / Scheduled SnapshotParameter Config

Scheduled SnapshotParameter Config

Device API Reference · New API

Project: Device API Documentation (New) | page_id: 377

Brief Description:

  • Scheduled snapshot, view images locally, scheduled image upload, batch configuration supported

Request URL:
- /xsw/set_snap

Request Method:
- POST

Parameters:

Parameter Required Type Description
data Yes array Modification parameter array, batch configuration supported
data.channelId Yes number Channel number, starting from 1
data.enable Yes number Snapshot switch, 0 disabled, 1 enabled
data.interval Yes number Snapshot interval (in seconds)
data.uploadEnable Yes number Snapshot upload switch, 0 disabled, 1 enabled
data.uploadUrl Yes string Snapshot upload address

Request Example

  • Body parameter example
  {
    "data": [{
        "channelId": 2,
        "enable": 1,
        "interval": 300,
        "uploadEnable": 0,
        "uploadUrl": "http://192.168.0.190/upload"
    }, {
        "channelId": 3,
        "enable": 0,
        "interval": 400,
        "uploadEnable": 1,
        "uploadUrl": ""
    }]
  }

Response Example

  {
    "code": 0,
    "msg": "",
}
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.