The following Ruby snippets demonstrate how to perform the following rule-management operations on the PowerTrack Rules API.
- Add a rule to a stream
- Delete a rule from a stream
- Retrieve the list of rules for a stream
Each snippet provides examples of what the stream URL should look like for each type described above, and includes specific lines that may be commented or uncommented depending on the type of stream you are using.