Good points... let's start with a validation as it's similar to https://github.com/theforeman/foreman/blob/develop/app/controllers/api/v2/hosts_controller.rb#L32 where we check the resulting class is one of Nic::Base.