Update

class Update : ActionBehavior


Trait attribute update used in automation action.

Summary

Public constructors

Update(trait: TraitFactory<Trait>, updatedAttributes: Map<Field, Any?>)

Create an Update instance.

Public properties

TraitFactory<Trait>

The trait to update.

String
Map<Field, Any?>

Key-value pairs representing the attributes to update, where the key is the attribute field ID, and the value is the new attribute value.

Public constructors

Update

Update(
    trait: TraitFactory<Trait>,
    updatedAttributes: Map<Field, Any?> = emptyMap()
)

Create an Update instance.

Public properties

trait

val trait: TraitFactory<Trait>

The trait to update.

traitId

val traitId: String

updatedAttributes

val updatedAttributes: Map<Field, Any?>

Key-value pairs representing the attributes to update, where the key is the attribute field ID, and the value is the new attribute value.