Expand my Community achievements bar.

Create viewable segments with UI-readonly-flag through API

Avatar

Level 1

5/15/24

Description - Currently there is no way (as far as I know) to view the rule setup (the UI definition) of a segment which is created with an PQL expression (and without an ansibleDataModel) through the API.

 

Why is this feature important to you - We are currently automating the creation process of multiple batch / edge segments, across different sandboxes. Since we are not able to reverse engineer the ansibleDataModel, we are creating the segment with a PQL expression. This gives us a segment which we are not able to look at in the same way as manually UI-created segments

 

How would you like the feature to work - Maybe generate the ansibleDataModel based on the PQL-expression automatically (if the ansibleDatamodel is missing in the request). Also it would be nice if we could set a UI_read_only-flag on the segment, so we can assure that it is not changed by the users in the UI.

 

Current Behaviour - Segments created through API with a PQL-expression (where ansibleDataModel is missing in the request) get the following error, when clicking "edit audience": 

 

 

Audience can't be loaded
This audience has been edited outside of the Platform Segment Builder and is no longer editable within the Segment Builder interface.