It is not currently possible to create a product line via the API.
Thank you for the idea. This is possible today through the API. The status of this idea was out of date. You can learn more here: Products API.