setEntity

abstract fun setEntity(entityId: String, classVersion: Int): SetEntity

Replaces an entity in full. Optional fields are set via the returned builder.

Every mutable field is overwritten. Omitting status or payload clears the stored value rather than preserving it, so a read-modify-write must send back every field it wants to keep. Use updateEntity to change part of an entity.

Parameters

entityId

Identifier of the entity to replace.

classVersion

Version of the class the payload conforms to.