method
App.AcquireDocumentLock
func (application *App) AcquireDocumentLock(
ctx context.Context,
collection,
documentID string,
takeover bool,
identity *AuthIdentity,
) (DocumentLockState, error)Acquire, refresh, or explicitly take over an authoring lock.
Takeover uses CollectionAccess.Unlock, falling back to Update when omitted. Locks coordinate editors; they do not replace optimistic revision checks or authorization.
Related types
AppA resolved application bound to operation services.
AuthIdentityAn exact authenticated collection and actor document.
DocumentLockStateSafe current lock metadata and actor capabilities.