updateFitTemporaryBleKey(params: UpdateTemporaryBleKeyParams)

Requires:
@ray-js/lock-sdk≥1.2.0

Description

Update the temporary Bluetooth key on the accessory side (rename/change the validity period)

Parameters

ParameterTypeRequiredDescription
YesUpdate parameters

Return Value

Type: Promise<unknown>
Cloud response

Error Code

Error CodeError Message
1032Missing validity time configuration
1033Missing start date
1034Missing expiry date
1010Start time is later than the expiry time
1035weeks not provided in weekly repeat mode
1042The device reported update failure

Referenced Types

typeWeekWeekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 active
export type Week = [
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
];

Valid Values

EffectiveConfig.repeat
ValueDescriptionSince
none--
week--
Week
ValueDescriptionSince
0--
1--

Examples

import { updateFitTemporaryBleKey } from '@ray-js/lock-sdk';
await updateFitTemporaryBleKey({ id: '1234567890', name: 'Key1', effective });