Modify the duration of the active lock session. Only keyholders or test lock owners can modify sessions (self-lock owners may only extend, never shorten).
Provide either duration (absolute new duration in seconds) or
durationChange (relative delta in seconds — positive to add time,
negative to subtract). The delta form is intended for game / external
integrations that want to add or remove time without first fetching
the current session.
Autorisations
AuthorizationstringheaderrequiredAPI tokens can be created in the Dashboard settings. Requires an Ultra subscription.
Corps
Provide exactly one of duration (absolute) or durationChange
(delta). Mixing both, or providing neither, returns 400.
durationintegerNew absolute duration in seconds.
Required range: x ≥ 1
durationChangeintegerDelta in seconds, added to the current duration. Positive to extend the lock, negative to shorten. The resulting duration must be > 0; use the `unlock` action to end the lock.
targetUserIdintegerUser whose session to modify (defaults to authenticated user)
Réponse
200application/jsonLock session updated
Lock session updated
okbooleanrequireddataobjectrequiredShow child attributes
idintegerdurationintegerendDatestring<date-time>lockStatestringisActiveboolean400application/jsonInvalid request
Invalid request
okbooleanrequirederrorstringrequired401application/jsonAuthentication required or token invalid
Authentication required or token invalid
okbooleanrequirederrorstringrequired403application/jsonNot authorized to modify
Not authorized to modify
okbooleanrequirederrorstringrequired404application/jsonNo active session or user not found
No active session or user not found
okbooleanrequirederrorstringrequired