Create a video stream
|
POST /api/v1/billing/streams |
This request can be configured as a callback from a DHCP server to automatically add cameras when IP addresses are assigned to them. It can also be used for other automation.
If DHCP isn't configured, the skip_dhcp_reservation flag can be used to skip DHCP-related logic.
Both standard cameras and intercom cameras are supported. If the MAC address belongs to an intercom, the system automatically detects this and creates the corresponding streams for the intercom camera. The system retrieves intercom camera streams through ONVIF. If the intercom doesn't provide streams through ONVIF, their URLs are generated using the vendor template. This is supported for Rubetek, Beward, and Interconnection intercoms.
{
"mac": "11:11:11:11:11:11",
"ip": "127.0.0.1",
"skip_dhcp_reservation": true
}
Method parameters
string mac, Camera MAC address
string ip, Camera IP address used to access it
bool skip_dhcp_reservation, This flag skips creating a reservation on the DHCP server
|
204 |
|
Successful response |
|
400 |
|
400_error |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|