Can we write scripts running in background to generate 3D model?

Sorry if this question is confusing as I’m totally new to SketchUp.
We are in a project to create 3D model of a Data Center room. There’re rows of racks and each rack has several servers. We have enough data to draw this room. We want to use the Ruby API to draw this 3D model, taking the data in JSON format and output .skp file. Can this be done automatically by scripting without using the SketchUp GUI?

Yes. But, of course, you will have to develop the script which likely won’t be trivial.

Yes, and no.
There is a sketchup sdk that allows you to read/write .skp files without SketchUp. https://extensions.sketchup.com/en/developer_center/sketchup_sdk
But, this is not the ruby api.

I can help creating such application if needed.