Overwrite existing note and preserve existing links?

Greetings all. I have notes in Joplin that have many links to them. Is there a way to import notes of the same name that will overwrite the existing notes AND preserve the links to that existing note?

For example:
Note "Train Stations" is linked to by notes "Locations" and "Transportation". I would like to import an external markdown file "Train Stations" so that it replaces/overwrites the existing "Train Stations" note and preserves the links that "Locations" and "Transportation" have to that "Train Stations" note.

That's an example but my specific need is to overwrite 1189 notes.
Thanks in advance for any guidance you can provide.

That sounds like a custom script or plugin using Joplin's data API. Here is an example using Python:

It scans through Markdown files, looks for matching notes in Joplin and finally replaces the note body if a match was found. Links to the notes are preserved, because the note ID doesn't change. Only the note body is changed.

Before using the data API, make sure to create a backup.