Skip to main content
Skip table of contents

Creating a video stream

This request can be specified as a callback from a DHCP server to automatically start cameras when an address is allocated to them.

It can also be used for any other automation.

POST/api/v1/billing/streams

Headers

Accept

application/json

Body

json

JSON
{
    "mac": "11:11:11:11:11:11",
    "ip": "11:11:11:11:11:11"
}

macrequired

string

Camera MAC address

iprequired

string

Camera IP address where it is available

Response

204

Successful response

400

400_error

422

Returns a JSON object with an error. Validation

JSON
{
    "message": "–ĘThere will be no informative message here",
    "errors": {
        "any_key": [
            "The reason for the error will be described here"
        ]
    }
}

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/billing/streams' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "mac": "11:11:11:11:11:11",
    "ip": "11:11:11:11:11:11"
}'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.