Skip to main content
Skip table of contents

Key update

PATCH/api/admin/v1/intercoms/{intercom}/keys/{intercom_key}

Headers

Authorization

Bearer token

Accept

application/json

X-Client

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

X-UUID

unique device id

Body

json

JSON
{
    "flat": 7
}

intercomoptional

int

Unique identifier of the intercom

intercom_keyoptional

int

Unique identifier of the key

flatrequired

integer

Flat of the apartment to which the keys will be assigned, see the List of intercom apartments

Response

200

Successful response

JSON
{
                "id": 7,
                "key": "0000003045CAAC",
                "flat": {
                    "id": 7,
                    "flat": 7,
                    "key_count": null,
                    "users_count": null,
                    "number": null,
                    "duplicate_number": null,
                    "is_duplicated_sip_line_available": false,
                    "is_analog_line_enable": false,
                    "is_sip_line_enable": false
                },
                "created_at": "2022-11-14 14:27:14",
                "updated_at": "2022-11-14 14:31:21"
            }
401

Authorization token is not provided or is invalid. Obtaining a token

Example

JSON
curl -k --location --request PATCH 'https://vms.local/api/admin/v1/intercoms/{intercom}/keys/{intercom_key}' \
--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 '{
    "flat": 7
}'
JavaScript errors detected

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

If this problem persists, please contact our support.