def METHOD_NAME(self, identifier=None, rtype=None, name=None, content=None):
    if identifier:
        records = self.list_records()
        to_update = next((r for r in records if r["id"] == identifier), None)
        query = {
            "Type": to_update["type"],
            "FullRecordName": to_update["name"],
            "NewValue": content,
        }
    else:
        query = {
            "Type": rtype,
            "FullRecordName": self._full_name(name),
            "NewValue": content,
        }
    LOGGER.debug("update_record query: %s", query)
    payload = self._post("/Domain/DnsRecord/Update", None, query)
    LOGGER.debug("update_record payload: %s", payload)
    if not payload["status"]:
        raise Exception("Internal error. This should not happen")
    if payload["status"] != "SUCCESS":
        raise Exception(f"Api error: {payload['message']}")
    return True