Newer Version Available

This content describes an older version of this product. View Latest

Supported Validations for DBT Segments

When creating or updating a segment, the ConnectApi.CdpSegmentInput class is subject to some SQL validations.

You can create a segment using the createSegment(input) method with the ConnectApi.CdpSegmentInput class. Similarly, you can update a segment using the updateSegment(segmentApiName, input) method with the same input class. The ConnectApi.CdpSegmentDbtModelInput input class, which is nested in the ConnectApi.CdpSegmentInput class, provides validation for the SQL.

The sql property of the ConnectApi.CdpSegmentDbtModelInput is subject to these validations.