def METHOD_NAME(self, identifier, rtype=None, name=None, content=None):
    if not identifier:
        resources = self.list_records(rtype, name, None)
        identifier = resources[0]["id"] if resources else None
    LOGGER.debug("update_record: %s", identifier)
    self._get(
        "domain.resource.update",
        query_params={
            "DomainID": self.domain_id,
            "ResourceID": identifier,
            "Name": self._relative_name(name).lower() if name else None,
            "Type": rtype if rtype else None,
            "Target": content if content else None,
        },
    )
    return True