Creating manager form-customization sets programmatically

I like to be able to create/ import sets programmatically, is this possible? I tried to see if there is a way to use runProcessor() but could not see it… But I think it is there somewhere. It would be enough , if I could import an xml tru the api.

All the processors for form customization sets should be under /core/model/modx/processors/security/forms/set.

Maybe you can use one of these. E.g. security/forms/set/import to import from an XML file.