Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62371

Python Rest API Python 404 ExecuteQueries

$
0
0

I am using power bi rest api by python to get the table data using service principal. I had enable all the required settings under the tenant settings and able to get groups report through the api. However when i try to executeQueries it keep show 404 error : No HTTP resource was found that matches the request URI

url = 'https://api.powerbi.com/v1.0/myorg/groups/{groupID}/datasets/{datasetID}/executeQueries'

query_payload='''{
                        "queries": [
                            {
                                "query": "EVALUATE VALUES(Mytable)"  
                            }
                        ]
                        }'''
        response=requests.get(url, json=query_payload, headers=header )
I had enable Semantic Model Execute Queries REST API under Integration Settings and also all the service principal related settings, for the serviceprincipal also enable dataset.ReadWrite.all permission , what else i can do to solve the problem ? 

Viewing all articles
Browse latest Browse all 62371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>