How to modify the appearance domain of a cover material with automation?

We get color information from an external system. We now want to create cover materials in CATIA to use exactly this information. Is there a way, to modify the appearance domain of a cover material with the help of automation?