code: def _update_record(self, identifier, rtype=None, name=None, content=None):
          
          result = False
  
          # TODO: some providers allow content-based updates without supplying an
          # ID, and therefore `identifier` is here optional. If we don't receive
          # an ID, look it up.
          if not identifier and rtype and name:
              records = self._list_records(rtype, name)
              if len(records) == 1:
                  identifier = records[0]["id"]
  
          if identifier and content:
              with localzone.manage(self.filename, self.origin, autosave=True) as zone:
                  if zone.update_record(identifier, content):  # pylint: disable=no-member
                      result = True
  
          LOGGER.debug("update_record: %s", result)
          return result
docs: Update a record. Returns `False` if no matching record is found.