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

buildPath

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

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

a new DataList with the item stored at the given path

Parameters

path

the JsonListPath used to describe where to store item

item

the DataItem to add

Generated by Dokka
(c) Tealium 2026