Maybe these links will help something.
https://community.zammad.org/t/automating-creation-of-custom-object-attributes/3831/2
https://community.zammad.org/t/examples-of-zpm-files/2881/2