Forum Discussion

Dan2's avatar
Dan2
Icon for Helper I rankHelper I
8 years ago
Solved

How to update the datasource target odata url using the powerbi rest api

We currently deploy the same dashboard to multiple environments, (ie, dev, test, prod). These dashboards all pull from an odata api so the URL for the target data willl change for each environment. S...
  • Dan2's avatar
    8 years ago

    So after reformatting I was able to successfully change the api url. Below is the example for anyone doing this.

    {
    "updateDetails":[
        {
          "connectionDetails":
             {
                  "url":"https://dev.mydomain.com/yourdirectory/odata"
            },
                 "datasourceType": "OData"
         }
      ]
    }