That was exactly the former topic I was referring to 🙂 
However when I use the API like this: 

api_endpoint = f"https://dev.azure.com/{org}/{project}/_apis/analytics/views/{viewId}?api-version=7.1"
 
It does not work.. (I have of course instantiated org, project and viewId) 
But with work item and team board it works just fine.