def METHOD_NAME(self):
    self.media_files = [
        {
            "id": hashlib.md5(str(p).encode("utf-8")).hexdigest(),
            "path": str(p),
            "hyper": self.hostname,
            "kind": "media",
            "size": p.stat().st_size,
        }
        for p in Path(self.media_path).rglob("*")
        if p.is_file()
    ]
    self.api_rest.put(
        "/admin/storage/physical/init/media",
        self.media_files,
    )
    app.logger.info("- updated media to api")
    return {
        "media": len(self.media_files),
    }