<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace_records(self, domain, records, record_type=None, name=None):
 """This will replace all records at the domain. Record type and record name can be provided to filter which records to replace. :param domain: the domain to replace records at :param records: the records you will be saving :param record_type: the type of records you want to replace (eg. only replace 'A' records) :param name: the name of records you want to replace (eg. only replace records with name 'test') :return: True if no exceptions occurred """


        url = self._build_record_url(domain, name=name, record_type=record_type)
        self._put(url, json=records)

        # If we didn't get any exceptions, return True to let the user know
        return True