Hi Richard, this API can be used
https://asXXX.awmdm.com/API/help/#!/apis/10002?!/SmartGroups/SmartGroups_CreateSmartGroupAsync
However I would suggest you use some dynamic method such as reading a sensor or AD User Group of enrolled user, that identifies the relevant devices and select those options as the identifier/filter within the Smart Group.