Creating a mark. VMS Client API
After creating a mark, a push notification with the type mark_created will be sent to user.ID channel.
POST/api/v1/cameras/{camera}/marksHeaders | |||||||||
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 for which the mark should be created | |||||||
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
|