Delete a DVR segment: Stream.Dvr.Delete

Delete DVR on specific stream in [from;to] range

Parameters

params: object


params.cameras: object

No description

params.cameras...

params.cameras{}: object

No description


params.cameras{}{}: object

No description


params.cameras{}{}.from: string

No description


params.cameras{}{}.to: string

No description



Result

result: string


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Stream.Dvr.Delete",
  "params": {
    "cameras": {
      "<camera_uuid>": {
        "<stream_uuid>": {
          "from": "2026010101003030",
          "to": "2026010101003040"
        }
      }
    }
  },
  "id": 123
}
cURL
Bash
curl -k --request POST \
    --url 'https://your-domain/api/' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <api-authorization-token>' \
    --data '{
  "jsonrpc": "2.0",
  "method": "Stream.Dvr.Delete",
  "params": {
    "cameras": {
      "<camera_uuid>": {
        "<stream_uuid>": {
          "from": "2026010101003030",
          "to": "2026010101003040"
        }
      }
    }
  },
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": "OK",
  "id": 123
}

400 Bad Request

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32601,
    "message": "Method not found"
  },
  "id": 123
}

500 Internal Server Error

Server error