How to Start/Stop Camera Recording Schedule with DW Spectrum API
-----------------------------------
Affected Roles: Administrator, Power Users
Related Digital Watchdog VMS Apps: DW Spectrum
Software Version: 6.0
Last Edit: April 18, 2025
-----------------------------------
Enable/Disable Recording with DW Spectrum API
DW Spectrum does not have a direct API method to start or stop recording for cameras. However, the saveCameraUserAttributes can change the additional attributes of a specific camera. This can be used with API to enable or disable a camera’s Recording Schedule, otherwise starting or stopping camera recording.
Related Articles
- DW Spectrum SDK/API Tools
- DW Spectrum – Making API Requests via the Internet
- DW Spectrum – Camera Identifiers
- API Tip: Finding a Camera ID
Using the API to Start/Stop Camera Recording
- Find and copy the Camera ID (not MAC/Physical ID) of the target device. For more information, you can refer to DW Spectrum - Camera Identifiers.
- Use the id as index and construct the JSON with required parameters of “/ec2/saveCameraAttributes”. For more information, you can refer to DW Spectrum - SDK/API Tools.
- Change the parameter “scheduledEnabled” to enable/disable the recording of camera.
**NOTE: “True” is enabled and “False” is disabled.
- Send a POST request to the DW Spectrum Media Server using the API, “/ec2/saveCameraAttributes”.
Authentication
All requests to the DW Spectrum Media Server require user authentication. DW Spectrum Media Server supports HTTP basic and digest authentication.
- Digest Authentication is more secure and workflow is described in the API documentation.
- HTTP Basic is simpler to use as you just add the user login and password to the link.
For More Information or Technical Support
DW Technical Support: 866.446.3595 (option 4)
https://www.digital-watchdog.com/contact-tech-support/
______________________________________________________________________________
DW Sales: 866.446.3595 [email protected] www.digital-watchdog.com