Forum Discussion
Getting error 403 Forbidden: while using Default.UpdateDatasources API
- 1 year ago
Hi Aniketparab1234,
Thank you for the response and confirming that the issue is resolved now. I request you to please accept the post as Accept as Solution so that other members who has similar issue will find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Thank you for your feedback.
Actually,The tenant setting “Service principals can use Fabric APIs” has already been enabled from the PowerBI Admin portal.
And when I go to add permission under Application Type, it only shows Tenant permissions, not Report or Workspace permissions which are required to use update dataset API.
Hi, I am also facing the same issue. Have you found any solution?
- Aniketparab12341 year agoRegular Visitor
Yes. Permissions were correct.
I made changes in body.
{
"updateDetails": [
{
"datasourceSelector": {
"datasourceType": "Oracle",
"connectionDetails": {
"server": "current server"
}
},
"gatewayId": "target gateway id",
"datasourceId": "target datasource ID",
"connectionDetails": {
"server": "target server"
}
}
]
}
Customize the body this way and try it