Smart rules Vs. Analytics builder

Hello,

we usually create smart rules from Cockpit (On geofence create Alarms) and we usually do it via APIs (using python on postman) instead of WEB interface. For a specific use-case, we need to create it in Analytics builder, is there a way to automate it as well by providing the exact points of the polygon? or maybe to import it or to call it from Cockpit to analytics builder?

It seems I may have misunderstood the original question. Could you please clarify some of the details?

If you are looking to create a geofence model in the Analytics Builder that replicates the “On Geofence Create Alarms” rule, please refer to the sample provided in “On Geofence Create Alarm” for more details: Analytics Builder - Cumulocity documentation.

ok let me clarify, I need to have the same flexibility that I currently have in cockpit when creating “On geofence create alarm” using Cumulocity API and python this time when creating geofences in analytics builder. Is it possible to create them as well using python and cumulocity API instead of web interface?

so I need to fill the geofence inside analytics builder programmatically using Cumulocity API and python with its polygon points, is it possible?