Problem calling http://server/zm/api/monitors.json
Posted: Wed Jun 18, 2025 10:40 am
The API documentation says that calling curl http://server/zm/api/monitors.json (naturally with "server" replaced with my server address) should return a list of all monitors. Unfortunately, this does not seem to be the case. After successfully logging in to the server, I get the response "message Monitor Name must be specified for creation, Monitor Name must be specified for creation," After some debugging the ZM PHP code, I find that the error message is generated in the function MonitorsController::add() at around line 126. Am I missing an extra parameter with the call to api/monitors.json?
Incidentally, I am using ZoneMinder version 1.36.34, running Ubuntu 24.04.2 LTS in a VirtualBox virtual machine.
Any help would be much appreciated.
David Singleton
Incidentally, I am using ZoneMinder version 1.36.34, running Ubuntu 24.04.2 LTS in a VirtualBox virtual machine.
Any help would be much appreciated.
David Singleton