Patch GatewayDatasource

 


Request | Response

The Patch Gateway Datasource operation updates a Gateway Datasource.

Note To call this operation, an app token or key is required. To learn more, see Authenticating and authorizing with Power BI Workspace Collections.

Request

PATCH https://api.powerbi.com/v1.0/collections/{collectionName}/workspaces/{workspaceId}/gateways/{gatewayId}/datasources/{datasourceId}

Uri parameter

Name Description
collectionName The workspace collection name
workspaceId The workspace id
gatewayId The gateway id
datasourceId The datasource id
datasourceData The datasource data

Body

 {  
     "credentialType": "Basic",  
     "basicCredentials": {  
     "username": "userName",  
     "password": "password"  
   }  
 }  

Response

Status code

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

Content-Type

application/json

Body schema

{  
"@odata.context": "http://api.powerbi.com/v1.0/collections/{collectionName}/workspaces/{workspaceId}/gateways/{gatewayId}/datasources/{datasourceId}",  
   object {}  
}