Post SetAllConnections
Updated: January 23, 2017
The Post SetAllConnections operation sets a data source connection string.
Note To call this operation, an app token or key is required. To learn more, see Authenticating and authorizing with Power BI Embedded.
POST https://api.powerbi.com/v1.0/collections/{collectionName}/workspaces/{workspaceId}/datasets/{datasetKey}/Default.SetAllConnections
Uri parameter
| Name | Description |
|---|---|
| collectionName | The workspace collection name |
| workspaceId | The workspace id |
| datasetKey | The dataset key |
| parameters | Takes an arbitrary input |
Body schema
{"connectionString":"data source=MyAzureDB.database.windows.net;initial catalog=Sample2;persist security info=True;encrypt=True;trustservercertificate=False"}
Status code
| Code | Description |
|---|---|
| 200 | OK. Indicates success. An empty object is returned in the response body. |
Content-Type
application/json
Show: