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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

*Dataflows - Update Refresh Schedule* REST API "Disable refresh schedule example" doesn't work

This endpoint: 

 

 

PATCH https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/refreshSchedule

 

 

With the request Body:

 

 

{
    "value": {
        "enabled": false //OR true
    }
}

 

 

(Dataflows - Update Refresh Schedule - REST API (Power BI Power BI REST APIs) | Microsoft Learn)

Is meant to disable a referesh schedule. If enabled is true, then the refresh schedule should be enabled.

Testing in the sandbox returns this error:

{
  "error": {
    "code": "InvalidRequest",
    "message": "Refresh schedule time  format is not supported"
  }
}

 

The same endpoint for datasets work as expected, enabling and disabling the schedule based on the request body.


Please fix for dataflows so the capability mirros the same endpoint for datasets, or is there a known work around? I found a way to disable by specifying some bogus days, times, localTimeZoneId, and notifyOption along with the enabled key to I assume complete some unnessesary syntax check, but I cannot find a work around for enabling the schedule through this endpoint since I need to keep the same refresh schedule.

Status: Needs Info
Comments
Anonymous
Not applicable

Hi @Tony239 

So when you use the below request , you got an error , right ? You need to add "localTimeZoneId" to this to make it work, right?

{
    "value": {
        "enabled": true
    }
}

 

Best Regards,
Community Support Team _ Ailsa Tao

franziska_pbi1
New Member
Hi, I'm facing the same issue. This API works on datasets but not on dataflows. I even added the localTimeZoneId as was suggested above, but still the same error. Sorry for the formatting. It's my first comment and a don't see any formatting options. { "value": { "localTimeZoneId": "Central European Standard Time", "enabled": false } } Error: { "code": "InvalidRequest", "message": "Refresh schedule time format is not supported" } Best Regards, Franziska
This widget could not be displayed.