updateUserLimitTime(params: UpdateUserLimitTimeParams)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Update user validity, permanent flag, and offline unlock restrictions.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Update parameters (user ID and effective time configuration) |
Return Value
Type: Promise<void>
None
Error Code
| Error Code | Error Message |
|---|---|
1014 | The device does not support this feature |
1069 | No permission to modify member validity (non-admin) |
1049 | Modifying admin validity is not supported |
1032 | Validity configuration missing when not permanent |
1033 | Validity start date not configured |
1034 | Validity end date not configured |
1010 | Start time cannot be later than end time |
1035 | weeks not configured for weekly repetition |
1011 | Failed to update member validity on the device |
1012 | Failed to update member validity in the cloud |
Referenced Types
type
WeekWeekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 activeValid Values
EffectiveConfig.repeat
| Value | Description | Since |
|---|---|---|
none | - | - |
week | - | - |
Week
| Value | Description | Since |
|---|---|---|
0 | - | - |
1 | - | - |