def _patch_txt_records(domain, account_number, records):
    """
    Send Patch request to PowerDNS Server

    :param domain: FQDN
    :param account_number:
    :param records: List of Record objects
    :return:
    """
    domain_id = domain + "."

    # Create records
    txt_records = []
    for record in records:
        txt_records.append(
            {'content': record.content, 'disabled': record.disabled}
        )

    # Create RRSet
    payload = {
        "rrsets": [
            {
                "name": domain_id,
                "type": "TXT",
                "ttl": 300,
                "changetype": "REPLACE",
                "records": txt_records,
                "comments": []
            }
        ]
    }

    # Create Txt Records
    server_id = current_app.config.get("ACME_POWERDNS_SERVERID", "localhost")
    zone_name = _get_zone_name(domain, account_number)
    zone_id = zone_name + "."
    path = f"/api/v1/servers/{server_id}/zones/{zone_id}"
    _patch(path, payload)

    Send Patch request to PowerDNS Server

    :param domain: FQDN
    :param account_number:
    :param records: List of Record objects
    :return:
    
lemur/plugins/lemur_acme/powerdns.py