Skip to main content
PATCH
/
lkbx
/
session
/
current
curl --request PATCH \
  --url https://dashboard.researchanddesire.com/api/v1/lkbx/session/current \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "duration": 86400
}
'
{
  "ok": true,
  "data": {
    "id": 7,
    "duration": 86400,
    "endDate": "2026-02-17T18:00:00Z",
    "lockState": "locked",
    "isActive": true
  }
}

Authorizations

Authorization
string
header
required

API tokens can be created in the Dashboard settings. Requires an Ultra subscription.

Body

application/json

Provide exactly one of duration (absolute) or durationChange (delta). Mixing both, or providing neither, returns 400.

duration
integer
required

New absolute duration in seconds.

Required range: x >= 1
durationChange
integer

Delta 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.

targetUserId
integer

User whose session to modify (defaults to authenticated user)

Response

Lock session updated

ok
boolean
required
data
object
required