Create a resource - dynamic group
POST {{base_url}}/api/resource_management/v4/resources
The group condition the same as search criteria are as on https://dl.managed-protection.com/u/baas/help/9.0/user/en-US/index.html#46985.html
Request Body
{"type"=>"resource.group.computers", "group_condition"=>"osType IN ('windows')", "parent_group_ids"=>["301d1574-849e-4714-859f-3a2ec12a218b"], "allowed_member_types"=>["resource.machine"], "name"=>"Dynamic group", "user_defined_name"=>"Dynamic group"}