async def METHOD_NAME(self, request: Dict[str, Any]) -> EndpointResult:
    directory_name = request["dirname"]
    if await self.service.METHOD_NAME(directory_name):
        return {}
    raise ValueError(f"Did not add plot directory {directory_name}")