Update recording retention time

Update the cyclic recording retention time, in minutes, for each camera of a device. The cyclic retention time is the amount of time that recordings are kept on the SD card before the first recording is removed to make space for a new recording.

Reset the device to update the camera retention times in the cloud.

Request
Security:
path Parameters
imei
required
string (IMEI)

The IMEI of the device. The IMEI number can be found on a sticker on the device itself or on the back of the device box.

Example: 357660101000198
Request Body schema: application/json

Successful operation

required
Array of objects (Recording retention configuration)

The camera recording retention configuration array. The recording retention is how long recordings are stored on the SD card until they get overwritten with new recordings.

Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

500

Internal server error

put/devices/{imei}/retention-config
Request samples
application/json
{
  • "config": "[{\"cameraId\":1, \"retentionMinutes\":30}, {\"cameraId\":2, \"retentionMinutes\":30},{\"cameraId\":51, \"retentionMinutes\":30}]"
}
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454"
}