Updating a mark
After updating a mark, a push notification with the type mark_updated will be sent to user.ID channel.
PUT/api/v1/cameras/{camera}/marks/{mark}Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
cameraoptional | int | Camera identifier to which the mark belongs | |||||||
markoptional | int | Mark identifier that needs to be updated | |||||||
titlerequired | string | Mark name | |||||||
fromrequired | date | Start date of the mark | |||||||
torequired | date | End date of the mark |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|