Creating a camera. VMS Billing API
To specify where in the tree to create a camera, you can send both the id from our database and the key that is specified when creating the tree element, see Creating a tree element.
If the camera needs to be placed in a private folder, you can send both the id from our database and the key that was specified when the folder was created.
This folder must be created in the same tree element where the camera is created, see Creating a Private Folder
POST/api/v1/billing/camerasHeaders | |||||||||
Accept | application/json |
Body | |||||||||
json |
JSON
| ||||||||
namerequired | string | Camera name | |||||||
macrequired | string | Camera MAC address | |||||||
serial_numberrequired | string | Camera serial number | |||||||
group_typerequired | string | Camera group type | |||||||
group_idrequired | int | The id of the tree element in which to create the camera | |||||||
group_external_idrequired | string|int | The key of the tree element in which to create the camera | |||||||
folder_idrequired | int | The Id of the private folder where the camera should be placed | |||||||
folder_keyrequired | string|int | The key of the private folder in which to place the camera | |||||||
is_user_ownerrequired | bool | The flag that is responsible for the ownership of the camera by the user | |||||||
latituderequired | double | Latitude at which the camera is located | |||||||
longituderequired | double | Longitude where the camera is located | |||||||
archive_storage_daysrequired | int | Number of days of archive storage on the camera | |||||||
servicerequired | string | Camera profile, used to apply templates | |||||||
external_idrequired | string | The unique identifier of the camera, which can be used to further refer to this camera | |||||||
onvif_credentialsrequired | array | Credentials for camera access via onvif |
Response | |||||||||
201 | Successful response | ||||||||
JSON
| |||||||||
422 | Returns a JSON object with an error. Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|