Aastra 536m expansion panel provisioning

I am looking for some sample code for setting up the ‘sidecar’ we use with our Aastra 55i phones. The 536m in particular.
I am setting the phones with an aastra.cfg and a MAC.cfg (where needed).
I am just not sure how to properly provision the expansion panel except via the web interface. Since I want all of the 536m’s the same, this is redundant work.

Any coding hints would be greatly appreciated!