Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ANA_3BRUM
Regular Visitor

Semantic Model Scheduling API

I'm making a call to the REST API to get the scheduled refresh time, but it's giving me an invalid credential error, but I'm the Power BI administrator and it looks like I have the required permissions. Any suggestions?
Details in the REST API Give it a try and the query will run normally.

ANA_3BRUM_0-1726658609509.pngANA_3BRUM_1-1726658650541.png

 

1 ACCEPTED SOLUTION
3 REPLIES 3
ANA_3BRUM
Regular Visitor

I don't have the skills to create the connector, but the token appears to be correct, as other queries work.
look:

The api i´m trying to connect to is https://learn.microsoft.com/pt-br/rest/api/power-bi/datasets/get-direct-query-refresh-schedule-in-gr...

lbendlin
Super User
Super User

evaluate the token with jwt.io - most likely the scope is missing.

 

Warning: Power BI REST API calls usually require a custom connector that understands AAD.

https://github.com/migueesc123/PowerBIRESTAPI

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.