Sync single

Sync single lock state by id.

Warning

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

GET https://api.tedee.com/api/v1.30/my/lock/{id}/sync

URI Parameters

Name

Type

Description

id

number

id of lock to sync

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 single lock

Sample request for lock with id = 123

curl -X GET "https://api.tedee.com/api/v1.30/my/lock/123/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
}