Skip to main content
Skip table of contents

Synchronize camera in groups

This request will synchronize the camera among all the user's created groups. For the selected camera, an array of groups is sent, and after executing the request, the camera will only be present in those specific groups. It may be added to some groups and removed from others.

POST/api/v1/cameras/{camera}/sync-groups

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

json

JSON
{
    "groups": [
        1,
        2,
        3
    ]
}

groupsrequired

array

Group identifiers

Response

200

Successful response

JSON
{"type" : "sync|async"}
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"
        ]
    }
}

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/cameras/{camera}/sync-groups' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id' \
--header 'Content-Type: application/json \
--data-raw '{
    "groups": [
        1,
        2,
        3
    ]
}'
JavaScript errors detected

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

If this problem persists, please contact our support.