---
title: Model: SegmentDefinition
slug: data-platform/api/model-segmentdefinition
docTags: 
createdAt: 2026-09-04T17:08:55.471Z
---

### Code examples

```json
{
  "root_condition": {
    "combination": {
      "conjunction": "CONJUNCTION_NOT_SET",
      "conditions": [
        {
          "": ""
        }
      ]
    },
    "customer_condition": {
      "customer_filter": {
        "combination": {
          "conjunction": "CONJUNCTION_NOT_SET",
          "expressions": [
            {
              "": ""
            }
          ]
        },
        "comparison": {
          "lhs": {
            "": ""
          },
          "comparator": "COMPARATOR_NOT_SET",
          "rhs": {
            "": ""
          }
        },
        "path_reference": {
          "value": ""
        },
        "string_literal": {
          "value": ""
        },
        "number_literal": {
          "value": ""
        },
        "boolean_literal": {
          "value": false
        },
        "is_missing": {
          "source": {
            "": ""
          }
        },
        "is_not_missing": {
          "source": {
            "": ""
          }
        },
        "false_or_missing": {
          "source": {
            "": ""
          }
        },
        "true_or_missing": {
          "source": {
            "": ""
          }
        },
        "coalesce": {
          "sources": [
            {
              "": ""
            }
          ]
        },
        "truncate_time": {
          "source": {
            "": ""
          },
          "unit": "TIME_UNIT_NOT_SET",
          "timezone": {
            "": ""
          }
        },
        "shift_time": {
          "source": {
            "": ""
          },
          "amount": {
            "": ""
          },
          "unit": "TIME_UNIT_NOT_SET",
          "timezone": {
            "": ""
          }
        },
        "any_of_string": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "any_of_number": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "none_of_string": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "none_of_number": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "like_any_of_string": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "like_none_of_string": {
          "needle": {
            "": ""
          },
          "haystack": [
            ""
          ]
        },
        "is_list_member": {
          "list": ""
        },
        "is_not_list_member": {
          "list": ""
        }
      }
    },
    "sequence_condition": {
      "sequence": {
        "entry_event_filter": {
          "combination": {
            "conjunction": "CONJUNCTION_NOT_SET",
            "expressions": [
              {
                "": ""
              }
            ]
          },
          "comparison": {
            "lhs": {
              "": ""
            },
            "comparator": "COMPARATOR_NOT_SET",
            "rhs": {
              "": ""
            }
          },
          "path_reference": {
            "value": ""
          },
          "string_literal": {
            "value": ""
          },
          "number_literal": {
            "value": ""
          },
          "boolean_literal": {
            "value": false
          },
          "is_missing": {
            "source": {
              "": ""
            }
          },
          "is_not_missing": {
            "source": {
              "": ""
            }
          },
          "false_or_missing": {
            "source": {
              "": ""
            }
          },
          "true_or_missing": {
            "source": {
              "": ""
            }
          },
          "coalesce": {
            "sources": [
              {
                "": ""
              }
            ]
          },
          "truncate_time": {
            "source": {
              "": ""
            },
            "unit": "TIME_UNIT_NOT_SET",
            "timezone": {
              "": ""
            }
          },
          "shift_time": {
            "source": {
              "": ""
            },
            "amount": {
              "": ""
            },
            "unit": "TIME_UNIT_NOT_SET",
            "timezone": {
              "": ""
            }
          },
          "any_of_string": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "any_of_number": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "none_of_string": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "none_of_number": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "like_any_of_string": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "like_none_of_string": {
            "needle": {
              "": ""
            },
            "haystack": [
              ""
            ]
          },
          "is_list_member": {
            "list": ""
          },
          "is_not_list_member": {
            "list": ""
          }
        },
        "unique_key_sources": [
          {
            "combination": {
              "conjunction": "CONJUNCTION_NOT_SET",
              "expressions": [
                {
                  "": ""
                }
              ]
            },
            "comparison": {
              "lhs": {
                "": ""
              },
              "comparator": "COMPARATOR_NOT_SET",
              "rhs": {
                "": ""
              }
            },
            "path_reference": {
              "value": ""
            },
            "string_literal": {
              "value": ""
            },
            "number_literal": {
              "value": ""
            },
            "boolean_literal": {
              "value": false
            },
            "is_missing": {
              "source": {
                "": ""
              }
            },
            "is_not_missing": {
              "source": {
                "": ""
              }
            },
            "false_or_missing": {
              "source": {
                "": ""
              }
            },
            "true_or_missing": {
              "source": {
                "": ""
              }
            },
            "coalesce": {
              "sources": [
                {
                  "": ""
                }
              ]
            },
            "truncate_time": {
              "source": {
                "": ""
              },
              "unit": "TIME_UNIT_NOT_SET",
              "timezone": {
                "": ""
              }
            },
            "shift_time": {
              "source": {
                "": ""
              },
              "amount": {
                "": ""
              },
              "unit": "TIME_UNIT_NOT_SET",
              "timezone": {
                "": ""
              }
            },
            "any_of_string": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "any_of_number": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "none_of_string": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "none_of_number": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "like_any_of_string": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "like_none_of_string": {
              "needle": {
                "": ""
              },
              "haystack": [
                ""
              ]
            },
            "is_list_member": {
              "list": ""
            },
            "is_not_list_member": {
              "list": ""
            }
          }
        ],
        "tracked_data": [
          {
            "key": {
              "key": ""
            },
            "source_path": "",
            "field_sub_paths": [
              ""
            ]
          }
        ],
        "max_age_seconds": "",
        "goal": {
          "combination": {
            "conjunction": "CONJUNCTION_NOT_SET",
            "continuations": [
              {
                "": ""
              }
            ]
          },
          "event_filter": {
            "combination": {
              "": ""
            },
            "comparison": {
              "": ""
            },
            "path_reference": {
              "": ""
            },
            "string_literal": {
              "": ""
            },
            "number_literal": {
              "": ""
            },
            "boolean_literal": {
              "": ""
            },
            "is_missing": {
              "": ""
            },
            "is_not_missing": {
              "": ""
            },
            "false_or_missing": {
              "": ""
            },
            "true_or_missing": {
              "": ""
            },
            "coalesce": {
              "": ""
            },
            "truncate_time": {
              "": ""
            },
            "shift_time": {
              "": ""
            },
            "any_of_string": {
              "": ""
            },
            "any_of_number": {
              "": ""
            },
            "none_of_string": {
              "": ""
            },
            "none_of_number": {
              "": ""
            },
            "like_any_of_string": {
              "": ""
            },
            "like_none_of_string": {
              "": ""
            },
            "is_list_member": {
              "": ""
            },
            "is_not_list_member": {
              "": ""
            }
          },
          "sequence_condition": {
            "": ""
          },
          "timeout_source": {
            "combination": {
              "": ""
            },
            "comparison": {
              "": ""
            },
            "path_reference": {
              "": ""
            },
            "string_literal": {
              "": ""
            },
            "number_literal": {
              "": ""
            },
            "boolean_literal": {
              "": ""
            },
            "is_missing": {
              "": ""
            },
            "is_not_missing": {
              "": ""
            },
            "false_or_missing": {
              "": ""
            },
            "true_or_missing": {
              "": ""
            },
            "coalesce": {
              "": ""
            },
            "truncate_time": {
              "": ""
            },
            "shift_time": {
              "": ""
            },
            "any_of_string": {
              "": ""
            },
            "any_of_number": {
              "": ""
            },
            "none_of_string": {
              "": ""
            },
            "none_of_number": {
              "": ""
            },
            "like_any_of_string": {
              "": ""
            },
            "like_none_of_string": {
              "": ""
            },
            "is_list_member": {
              "": ""
            },
            "is_not_list_member": {
              "": ""
            }
          }
        },
        "disqualifier": {
          "combination": {
            "conjunction": "CONJUNCTION_NOT_SET",
            "continuations": [
              {
                "": ""
              }
            ]
          },
          "event_filter": {
            "combination": {
              "": ""
            },
            "comparison": {
              "": ""
            },
            "path_reference": {
              "": ""
            },
            "string_literal": {
              "": ""
            },
            "number_literal": {
              "": ""
            },
            "boolean_literal": {
              "": ""
            },
            "is_missing": {
              "": ""
            },
            "is_not_missing": {
              "": ""
            },
            "false_or_missing": {
              "": ""
            },
            "true_or_missing": {
              "": ""
            },
            "coalesce": {
              "": ""
            },
            "truncate_time": {
              "": ""
            },
            "shift_time": {
              "": ""
            },
            "any_of_string": {
              "": ""
            },
            "any_of_number": {
              "": ""
            },
            "none_of_string": {
              "": ""
            },
            "none_of_number": {
              "": ""
            },
            "like_any_of_string": {
              "": ""
            },
            "like_none_of_string": {
              "": ""
            },
            "is_list_member": {
              "": ""
            },
            "is_not_list_member": {
              "": ""
            }
          },
          "sequence_condition": {
            "": ""
          },
          "timeout_source": {
            "combination": {
              "": ""
            },
            "comparison": {
              "": ""
            },
            "path_reference": {
              "": ""
            },
            "string_literal": {
              "": ""
            },
            "number_literal": {
              "": ""
            },
            "boolean_literal": {
              "": ""
            },
            "is_missing": {
              "": ""
            },
            "is_not_missing": {
              "": ""
            },
            "false_or_missing": {
              "": ""
            },
            "true_or_missing": {
              "": ""
            },
            "coalesce": {
              "": ""
            },
            "truncate_time": {
              "": ""
            },
            "shift_time": {
              "": ""
            },
            "any_of_string": {
              "": ""
            },
            "any_of_number": {
              "": ""
            },
            "none_of_string": {
              "": ""
            },
            "none_of_number": {
              "": ""
            },
            "like_any_of_string": {
              "": ""
            },
            "like_none_of_string": {
              "": ""
            },
            "is_list_member": {
              "": ""
            },
            "is_not_list_member": {
              "": ""
            }
          }
        }
      },
      "min_count": "",
      "max_count": ""
    }
  },
  "collections": [
    {
      "key": "",
      "source": {
        "key": ""
      },
      "narrowed_sub_paths": [
        ""
      ],
      "unique": false
    }
  ]
}
```
