Bulk updating users' PMI and Host Key

How do you set users’ PMIs to match their Zoom Phone numbers. Is there a way to update PMIs and host keys in bulk? I attempted to use customer attributes by adding the PMI and host key in the Zoom Web portal, but the system did not recognize or update them. Is it possible to perform this update through the API? If so, could you provide guidance? I’ve searched extensively but haven’t been able to find any information.