Camera schedule
Renaming camera.
PATCH/api/v1/cameras/{camera}Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
cameraoptional | int | Camera identifier | |||||||
archive_recording_typerequired | string | Schedule type | |||||||
archive_recording_timetablerequired | array | Schedule (required if the type is "timetable") | |||||||
archive_recording_timetable.daysrequired | array | Schedule days | |||||||
archive_recording_timetable.days.*.typerequired | array | Day | |||||||
archive_recording_timetable.days.*.fromrequired | array | Start time | |||||||
archive_recording_timetable.days.*.torequired | array | End time |
Response | |||||||||
200 | Camera object | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
| |||||||||
404 | If the camera does not belong to the user or does not exist |
Example | |||||||||
JSON
|