Start a new lock session or complete (unlock) the active session. User IDs (target and keyholders) are validated against your accessible users before the action is performed. When starting a partner's lock, the authenticated user is automatically assigned as a keyholder, including when keyholderIds is omitted or empty. OAuth partner starts require lkbx:keyholders. A definitive Chaster creation rejection cancels the local session before returning an error. If Chaster's outcome is uncertain, the response is 201 with the created lockSessionId and a warning; inspect the current session and do not retry creation blindly.
Autorisierungen
AuthorizationstringheaderrequiredAPI tokens can be created in the Dashboard settings. Requires an Ultra subscription.
Body
actionenumrequiredAction to perform
Allowed values: lockunlock
lockSettingsIdintegerLock template ID (for lock action). Fixed templates use duration in seconds. Only templates with isRandomDuration=true use minDuration/maxDuration; equal bounds select that exact duration.
keyholderIdsinteger[]User IDs to assign as keyholders (for lock action). All IDs must be users you have access to. The initiating user is always included for partner locks. Assignments require lkbx:keyholders for OAuth clients.
targetUserIdintegerUser to lock/unlock (defaults to authenticated user). Must be a user you have access to.
isTestLockbooleanOverride test lock setting from template. When true, the lock owner can unlock without a keyholder. Only used with lock action.
Antwort
200application/jsonLock session completed
Lock session completed
okbooleanrequireddataobjectrequiredShow child attributes
messagestringrequired201application/jsonLock session created
Lock session created
okbooleanrequireddataobjectrequiredShow child attributes
lockSessionIdintegerrequiredID of the created lock session
warningstringPresent when the local session exists but Chaster synchronization could not be confirmed. Check the current session; do not retry creation.
400application/jsonInvalid request or operation failed
Invalid request or operation failed
okbooleanrequirederrorstringrequired401application/jsonAuthentication required or token invalid
Authentication required or token invalid
okbooleanrequirederrorstringrequired403application/jsonInaccessible user ID
Inaccessible user ID
okbooleanrequirederrorstringrequired404application/jsonUser not found
User not found
okbooleanrequirederrorstringrequired