Skip to content

SDK API Reference / SegmentTreeNode

Interface: SegmentTreeNode

Tree node for hierarchical segment/folder listing

Used for recursive listing and tree visualization.

Properties

children?

optional children?: SegmentTreeNode[]

Child nodes (folders can contain folders and segments)


id

id: string

Resource ID


metadata

metadata: object

Additional metadata

createdAt?

optional createdAt?: string

Created timestamp

description?

optional description?: string

Description

folderCount?

optional folderCount?: number

Number of child folders (folders only)

journeyCount?

optional journeyCount?: number

Number of child journeys (folders only)

segmentCount?

optional segmentCount?: number

Number of child segments (folders only)

updatedAt?

optional updatedAt?: string

Updated timestamp


name

name: string

Resource name


population?

optional population?: number

Segment population (segments only)


state?

optional state?: string

Journey state (journeys only)


type

type: "folder" | "segment" | "journey"

Type of resource