Skip to content

ThingGetWithLease

ThingGetWithLease = ThingDetail & object

Returned by client.thing.getWithLease. Everything client.thing.get returns, plus a lease block (ThingGetWithLease.lease) the holder echoes back on the subsequent revise/retract (leaseId) and on client.thing.releaseLease. The version and the lease come from a single backend snapshot, so the holder knows exactly which version it leased.

lease: object

id: string

expiresAt: string

https://docs.warmhub.ai/data-modeling/things/