Skip to main content
Skip table of contents

List of marks before or after a specific date

Returns a sorted list of marks based on the date, either from the greatest to the smallest (from smallest to greatest) after/before a specified date.

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

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

Date from which the markers will be displayed

rewindrequired

string

If the value is «next», the markers created after the specified date will be returned and sorted by date from the smallest to the greatest. If the value is «previous», the markers created before the specified date will be returned and sorted by date from the greatest to the smallest

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/rewind?from=date&rewind=string&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.