The method and parameters
|
POST /api/v1/billing/streams |
This request can be specified as a callback from the DHCP server to automatically install cameras when they are assigned an IP address. It can also be used for any other automation.
If DHCP is not configured, you can use the skip_dhcp_reservation flag to exclude the DHCP-related logic.
JSON
{
"mac": "11:11:11:11:11:11",
"ip": "127.0.0.1",
"skip_dhcp_reservation": true
}
string mac – the MAC address of the camera.
string ip – the IP address of the camera.
bool skip_dhcp_reservation – using this flag, you can skip the step of creating a reservation in the DHCP server.
|
204 |
|
Successful response |
|
400 |
|
400_error |
|
422 |
|
Returns a JSON object with an error. For details, see General information > Validation. JSON
|