Hi ….i woud like to know if exists samples for creating a rule for a giving space..Thanks in advance!!!

Here is some code I wrote to add a rule to a space. As Roy suggested, the unit tests may be a source of more code you can use. Documentation is almost non-existent for this area of the web service, I had to actually go into the core Alfresco code to figure out some of the methods and parameters. Good luck!