You can use Data Management API specifically looks at this workflow to publish a Cloud Workshared Revit Model. It is handy - provides options to publish Revit models with or without links