Lock

Send command to lock the device by provided id.

POST https://api.tedee.com/api/v1.30/my/lock/{id}/operation/lock

URI Parameters

Name

Type

Description

id

number

id of lock

Responses

Name

Type

Description

202 Accepted

Execute command response

successful operation

Scopes

Name

Description

Lock.Operate

Grants user possibility to operate locks

Examples

Lock

Sample Request

curl -X POST "https://api.tedee.com/api/v1.30/my/lock/1/operation/lock" -H "accept: application/json" -H "Content-Type: application/json-patch+json" -H "Authorization: Bearer <<access token>>"

Sample response

HTTP status code: 202

{
    "result": {
        "operationId": "1577833200000",
        "lastStateChangedDate": "2021-04-26T05:53:57.423Z"
    },
    "success": true,
    "errorMessages": [],
    "statusCode": 202
}