Post SetAllConnections

 

Updated: January 23, 2017



Request | Response

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

NameDescription
collectionNameThe workspace collection name
workspaceIdThe workspace id
datasetKeyThe dataset key
parametersTakes 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

CodeDescription
200OK. Indicates success. An empty object is returned in the response body.

Content-Type

application/json

Show: