def _patch_txt_records(domain, records, patch=True):
    """
    Send Patch or Put request to NS1 Server

    :param domain: FQDN
    :param account_number:
    :param records: List of Record objects
    :return:
    """
    # Create Txt Records
    zone = _get_zone_name(domain)
    path = f"/v1/zones/{zone}/{domain}/TXT"
    if patch:
        _patch(path, records)
    else:
        _put(path, records)

    Send Patch or Put request to NS1 Server

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