Forum Discussion
Anonymous
4 years agoNot applicable
AccessUnauthorized on Mashup engine using Gateways - Update Datasource API
Hi, I'm using the Gateways - Update Datasource API to programmatically change the credentials of a dataset that connects to a PBI dataflow. I use the following call: PATCH https://api...
- Anonymous4 years ago
Finally got an answer from the PBI product group.
The correct payload to use (totally undocumented) is:
{ "credentialDetails": { "credentialType": "OAuth2", "encryptedConnection": "Encrypted", "encryptionAlgorithm": "None", "privacyLevel": "Organizational", "useCallerAADIdentity": true } }I call it using a password grant token in the Authorization Bearer.
This undocumented payload does not require a token in the payload thanks to the property:
"useCallerAADIdentity": true
Anonymous
4 years agoNot applicable
Finally got an answer from the PBI product group.
The correct payload to use (totally undocumented) is:
{
"credentialDetails": {
"credentialType": "OAuth2",
"encryptedConnection": "Encrypted",
"encryptionAlgorithm": "None",
"privacyLevel": "Organizational",
"useCallerAADIdentity": true
}
}
I call it using a password grant token in the Authorization Bearer.
This undocumented payload does not require a token in the payload thanks to the property:
"useCallerAADIdentity": true