AddObjectWithFiles UIXV2 usage

I need to create a new object from a UIX v2 application. I can’t find a dedicated API method for adding an object without files. Would it be correct to use the AddObjectWithFiles method for this purpose, and how is this method intended to be used?