Using computer group as target for an action via REST API

Hello,

Starting from REST: Take action on computerGroup I was able to create actions that apply to all members of a group via the rest API. However these actions are displayed as using a “custom relevance”.
I would like to create the actions via the REST api that are displayed in the console as having the target specified via a computer group.
Is that possible ? Can I get a sample XML ?