Patch data source (gateways)

 

Updated: June 23, 2017



Request | Response

The Patch data source operation updates the credentials for a data source.

Required scope: Dataset.ReadWrite.All

PATCH https://api.powerbi.com/v1.0/myorg/gateways/{gateway_id}/datasources/{data_source_id}

Uri parameter

NameDescriptionData Type
gateway_idGuid of the gateway to use. You can get the Gateway id from the Get Gateways operation.String
data_source_idGuid of the data source to get. You can get the Data source id from the Get data sources operation.String

Header

Authorization: Bearer eyJ0eX ... FWSXfwtQ

Body schema

{    
    "credentialDetails": {
        "credentials": "ABEF==",        
        "encryptionAlgorithm": "RSA-OAEP|None",
          "encryptedConnection": "Encrypted|NotEncrypted", 
        "privacyLevel": "None|Public|Organizational|Private",
        "credentialType": "Basic|Windows|Anonymous|…"
    }
}

Status code

CodeDescription
200OK. Indicates success.
400Bad request
403Unauthorized
404Not found
500Internal service error

Content-Type

application/json

Show: