Skip to main content
Skip table of contents

List of markfor a camera

Works the same way as List of marks, but returns markers within the scope of a single camera, up to a maximum of 1000 items

GET/api/v1/cameras/{camera}/marks

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

fromrequired

date

Start date from which the markers will be displayed

torequired

date

End date until which the markers will be displayed

typesrequired

array

Only types from the types array will be included in the response. The list of available types can be found in Main configurations

Response

200

Successful response

JSON
[
    {
        "id": 1779416,
        "type": "motion_detect_smtp",
        "type_pretty": "Motion detection SMTP",
        "title": "Motion detection SMTP",
        "can_delete": false,
        "from": "2022-04-07 12:38:08",
        "to": null,
        "camera_id": 894,
        "created_at": "2022-04-07 12:38:03",
        "updated_at": "2022-04-07 12:38:03"
    }
]
401

Authorization token not provided or invalid

403

If a requested mark type is not available to the current user

422

Returns a JSON object with an error, see Validation

JSON
{
    "message": "There won't be any informative message here",
    "errors": {
        "any_key": [
            "Here the error cause will be described"
        ]
    }
}

Example

JSON
curl -k --location --request GET 'https://vms.local/api/v1/cameras/{camera}/marks?from=date&to=date&types=array' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.