I've successfully copied it and can use your concepts to add a new artist into Lidarr with it successfully pulling in an artists back catalogue.
However, the issue comes when trying to use the same method to add an album to an artist that already exists. Lidarr barfs on that.
Are you aware of what API call is required just to add a particular release or release group to an existing artist?
Many Thanks
Dave