Like I said , there are no API endpoints for that type of DHCP configuration on the MX. Only on the MS
You cannot automate the process. The best way would be using templates and only modifying the template, but that depends on your setup and needs.
EDIT : I was wrong. See Karstenl response bellow. Easy to automate this.