Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/DataList/Builder/buildPath

buildPath

fun buildPath(path: JsonListPath, item: DataItem): DataList.Builder

Takes a copy of this DataList and builds the necessary path according to the given path in order to store the given item.

Where a DataObject/DataList already exists on the given path, the incoming items will be merged in. Where the DataObject/DataList does not exist yet in this DataList a new one will be created. Where a different type was specified on the path to what is currently in this DataList, it will be overwritten.

Return

The current Builder with the item stored at the given path

Parameters

path

the JsonObjectPath used to describe where to store item

item

the DataItem to add

Generated by Dokka
(c) Tealium 2026