I found that I needed to put CustomRelevance inside of “Target” to make it work properly. However the end result is slightly different from the Actions that I create manually.
For the manual ones, the “Target” tab on the Action shows the group that I selected. For the ones that I’ve created with REST it shows nothing for any of the items listed on that tab, and the box says “This action was targeted using a custom relevance clause that can be viewed in the summary tab”. On the Summary tab, it shows the relevance from the baseline in the “Details” section and also the same relevance in a “Custom Targeting” section.
If I leave out the CustomRelevance in the XML then it shows “All Computers” on the Target tab but the relevance is still shown in the Details section. This makes me think that all computers are going to evaluate the relevance and not just the group that should be targeted. Is that right?