---
title: "Update lock"
method: PATCH
path: "/locks/{id}"
tags: ["Locks"]
---

# Update lock

`PATCH /locks/{id}`

## Path parameters

- `id` integer, required

## Request body

- object
  - `lock` object, required
    - `name` string — The name of the lock
    - `description` string, nullable — The description of the lock
    - `latitude` number, float, nullable — The latitude of the lock.
    - `longitude` number, float, nullable — The longitude of the lock.
    - `geofence_restriction_enabled` boolean, nullable — Whether the lock is geofence restricted. Geofence restriction enforces that users may only unlock when they are near the lock.
    - `reader_restriction_enabled` boolean, nullable — Whether reader restriction is enabled. Reader restriction enforces that users may only unlock when standing in front of the door.
    - `time_restriction_enabled` boolean, nullable — Whether the lock is time restricted. Time restriction enforces that users may only unlock at specific hours.
    - `order_id` integer, nullable — The position of the lock, determining the sort order of the locks.
    - `floor_id` integer, nullable — The floor ID of the lock
    - `favorite` boolean — Whether the lock is marked as a favorite by the user. Only shown if requested.

## Response `204`

No Content

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content

---

[API](https://skmtc.dev/kisi/apis/kisi-api.md) · [All operations](https://skmtc.dev/kisi/apis/kisi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kisi/kisi-api/revisions/998700ffff5a/schema)
