Parameters
JSON body
Request body
application/jsonlockIdnumberRequiredTTLock lock ID (from TTLock API).
passwordstringOptionalCustom passcode digits. If not provided, a random 8-digit code is generated.
passwordNamestringOptionalHuman-readable label for the passcode (max 250 chars, ASCII only).
startDatestringOptionaldate-timeISO 8601 date-time when the passcode becomes active. Defaults to now.
2024-05-01T10:00:00.000ZendDatestringOptionaldate-timeISO 8601 date-time when the passcode expires. If not set, the passcode is permanent.
2024-05-01T10:00:00.000Z