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)
    if name:
        name = self._relative_name(name).lower()
    url = f"domains/{self.domain_id}/records/{identifier}"
    self._put(
        url,
        data={
            "name": name.lower() if name else None,
            "type": rtype if rtype else None,
            "target": content if content else None,
        },
    )
    return True