SDK API Reference / SegmentTreeNode
Interface: SegmentTreeNode
Tree node for hierarchical segment/folder listing
Used for recursive listing and tree visualization.
Properties
children?
optionalchildren?:SegmentTreeNode[]
Child nodes (folders can contain folders and segments)
id
id:
string
Resource ID
metadata
metadata:
object
Additional metadata
createdAt?
optionalcreatedAt?:string
Created timestamp
description?
optionaldescription?:string
Description
folderCount?
optionalfolderCount?:number
Number of child folders (folders only)
journeyCount?
optionaljourneyCount?:number
Number of child journeys (folders only)
segmentCount?
optionalsegmentCount?:number
Number of child segments (folders only)
updatedAt?
optionalupdatedAt?:string
Updated timestamp
name
name:
string
Resource name
population?
optionalpopulation?:number
Segment population (segments only)
state?
optionalstate?:string
Journey state (journeys only)
type
type:
"folder"|"segment"|"journey"
Type of resource