My goal is to compute a Revit model with the design automation API. The Revit model is hosted on BIM360 docs. The Revit model contains links/references to other models. Those references were created in Revit and all refer to models also hosted on BIM360 docs.
In order to submit the workitem to the design-automation API, I need to know all referenced files. This is described here.
However, when I query the references endpoint of the data management API {{FORGE_HOST}}/data/v1/projects/:project/versions/:version/relationships/refs, I get an empty data object.
I would have expected to get the versions of the referenced items.
One proposed workflow seems to be to upload files to BIM360 using the "upload linked files" function in the BIM360 docs frontend, see this blog post. Doing so, I do get the references using the above mentioned references endpoint. However, this does not work for our organisation and workflows, as more and more references are added during the planning phase. Moreover, some files reference each other, which also cannot be accomplished using the "upload linked files" function. The blog also mentions the forge API to link files, but we do not want to manually link models using the forge API, but would like to use the functionality provided by Revit.
How can I extract/query Revit references for Revit files that have been linked using referencing within Revit?