Rest api update automatic group membership

We are trying to use a PowerShell script to pull info from an outside source and then update the relevance for automatic groups (this is currently email addresses for users that own the computer vs what is in the external source group). The place where we are running into issues is what URI do we post the changes to?

For example the URI for posting changes to memberships of manual groups is:

$script:TargetBigFixGroup.DataAsXml.BESAPI.ManualComputerGroup.Resource

We just need to post the updated xml for automatic groups which in this case is just relevance.

Thanks,

Jason

I think you want

PUT computergroup/{site type}/{site name}/{id}