Creating a "Start Patrolling" rule from SDK

Hi! We are trying to create a rule from the SDK, for this, we are researching the ConfigApiClient example, but from here we are not being able to create this rule. We get stuck in the step of choosing a “Start event source”, a tree with cameras is shown but the ok button is disabled, any clue of why is this happening?

Thank you.

The sample Config API Client, does not correctly handle external events. You will be able to make the rule by using Config API SOAP, but just not the sample.

Hello, thank you very much for your response. We have been researching, but it seems there are no examples of creating a rule with SOAP, and we are a bit unsure about this aspect. Could you provide us with some guidance on this matter? Thank you.

If you prefer to use the Configuration API SOAP there is some example in this page, the “Rules configuration” section, but no real sample.

In order to show you how it can be done I cheated a little. I create a new rule in the Management Client. I read it using the RESTful API doing a GET. I copy the output. I do a POST instead, I use the copied JSON as body in the POST request but change the name and the id. Doing this the POST will make a new rule for me.

Hello, using this solution that you commented has worked for us, thank you.