Sync

Sync all users locks states.

Warning

You shouldn’t run this endpoint more than once every 20 seconds.

GET https://api.tedee.com/api/v1.30/my/lock/sync?id={lockId1}&id={lockId2}

URI Parameters

Name

Type

Description

id

int[] (optional)

array with lock ids

Responses

Name

Type

Description

200 OK

Lock sync []

successful operation

Scopes

Name

Description

Device.Read

Grants user possibility to read data connected with devices

Device.ReadWrite

Grants user possibility to read and write data connected with devices

Examples

Sync all users locks

Sample request

curl -X GET "https://api.tedee.com/api/v1.30/my/lock/sync" -H "accept: application/json" -H "Authorization: Bearer <<access token>>"

Sample response for lock connected to bridge

HTTP status code: 200

{
    "result": [
        {
            "id": 123,
            "isConnected": true,
            "lockProperties": {
                "state": 3,
                "isCharging": false,
                "batteryLevel": 54,
                "stateChangeResult": 0,
                "lastStateChangedDate": "2021-04-26T06:02:04.197Z"
            },
            "revision": 1
        }
    ],
    "success": true,
    "errorMessages": [],
    "statusCode": 200
}

Sample response for lock disconnected from bridge

HTTP status code: 200

{
    "result": [
        {
            "id": 123,
            "isConnected": false,
            "lockProperties": null,
            "revision": 1
        }
    ],
    "success": true,
    "errorMessages": [],
    "statusCode": 200
}