def METHOD_NAME(self, path: str, content: str) -> None:
    """Add a target to top-level targets metadata"""
    data = bytes(content, "utf-8")
    # add content to cache for serving to clients
    self.target_cache[path] = data
    # add a target in the targets metadata
    with self.edit_targets() as targets:
        targets.targets[path] = TargetFile.from_data(path, data)
    logger.debug("Targets v%d", targets.version)
    # update snapshot, timestamp
    self.do_snapshot()
    self.do_timestamp()