lock
Acquire an exclusive edit lock on an ADT object to enable write operations. Returns a session-bound handle used by setters and patchers; release it before activation or prefer editObject for automatic lock management.
Instructions
Take an edit lock on an object, which every write needs. The handle it returns is what setObjectSource, patchObjectSource and deleteObject take - and it lives and dies with the ADT session, so a lost session voids it and the object has to be locked again. This server remembers the handle per object, so the write tools find it themselves and listLocks shows what is held. The lock must be RELEASED BEFORE ACTIVATING: activation refuses to run while the same session holds it. Prefer editObject, which takes and releases the lock around the change for you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectUrl | Yes | URL of the object to lock | |
| accessMode | No | Access mode for the lock |