Skip to main content
Skip table of contents

Reporting a camera. VMS Client API

Users can report cameras, and administrators will see these reports.

POST/api/v1/issues/{issue}/cameras/{camera}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

issueoptional

int

Complaint identifier. The list of possible complaints can be found in the Basic configurations

cameraoptional

int

Camera identifier

Response

200

Camera object

JSON
{
    "id": 1,
    "title": "Foreign objects in the lens"
}
401

Authorization token not provided or invalid, see Obtaining a token

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"
        ]
    }
}
404

Camera does not belong to the user or does not exist

429

Number of complaints for a camera exceeds the limit

JSON
There is a rate limit of 20 requests per 10 minutes

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/issues/{issue}/cameras/{camera}' \
--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.