I had a use for this today, and was a bit disappointed that the developer.bigfix.com documentation did not include a sample XML for posting a new clientquery. So here’s one.
<BESAPI>
<ClientQuery>
<ApplicabilityRelevance>true</ApplicabilityRelevance>
<QueryText>(ids of it, names of it) of processes</QueryText>
<Target>
<ComputerName>hostname1</ComputerName>
<!-- Other targetting options include:
<ComputerID>12345</ComputerID>
<CustomRelevance>windows of operating system</CustomRelevance>
<ComputerGroup>
<Name>ComputerGroup1<Name>
<SiteName>CustomSite1<SiteName>
</ComputerGroup>
-->
</Target>
</ClientQuery>
</BESAPI>