setEntity
abstract fun setEntity(entityId: String, classVersion: Int, status: String? = null, payload: Any? = null, ifMatch: String? = null): SetEntity
Replaces an entity in full.
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.
status
Optional status to store with the entity.
payload
Optional replacement entity fields (arbitrary JSON object).
ifMatch
Optional eTag last read, to fail the request when the entity changed since (If-Match header).