Repath Revit links

Hi, We have a local Revit server, and for one project users have hundreds of linked objects and photos (revit 2021) but the location path for those files changed. How can I in bulk replace the path of linked files using Dynamo. From the original path only the root folder was changed so I would like to export all paths in one list replace and import them back otherwise it would take long time for users to do it manually and there was no way to do it from revit link manager itself. Any help appreciated (I am IT guy and not revit user, appreciate step by step details if possible). Thanks

You could move the files to the original place and use the etransmit tool to shift everything to a new directory.

If you’re any to control the pathing more directly as the genie cannot be put back into the box, look into the TransmissionData class of the Revit API.