Camera update
The camera is searched by mac or by external_id.
PATCH/api/v1/billing/camerasHeaders | |||||||||
Accept | application/json |
Body | |||||||||
json |
JSON
| ||||||||
external_idrequired | string | current external_id of the camera | |||||||
macrequired | string | current mac address of the camera | |||||||
new_macrequired | string | new mac address of the camera | |||||||
serial_numberrequired | string | new camera serial number | |||||||
servicerequired | string | camera profile, used for applying templates | |||||||
profilerequired | array | add | |||||||
namerequired | string | camera name | |||||||
group_typerequired | string | camera group type | |||||||
group_idrequired | int | id of the tree element in which to create the camera | |||||||
group_external_idrequired | string|int | key of the tree element in which to create the camera | |||||||
folder_idrequired | int | id of the private folder where the camera should be placed | |||||||
folder_keyrequired | string|int | the key of the private folder in which the camera should be placed | |||||||
is_user_ownerrequired | boolean | flag that determines whether the camera belongs to the userй | |||||||
latituderequired | double | latitude at which the camera is located | |||||||
longituderequired | double | longitude at which the camera is located | |||||||
archive_storage_daysrequired | int | number of days the archive is stored on the camera | |||||||
onvif_credentialsrequired | array | cedentials for accessing the camera via onvif |
Response | |
201 | Successful response |
JSON
| |
422 | Returns a JSON object with an error. |
JSON
|
Example | |||||||||
JSON
|