I’ve done this and a lot of other configuration sync in my config management. In fact it allows you to transfer ANY dynatrace configuration from one tenant to another and a lot more!
I’ve decided to put parts of this work under GPLv3 so you can reuse it:
What this basically allows you to do is to fetch configs, store it into JSON files and then import the whole config set into other environments