Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
Best Regards,
Community Support Team _ Ailsa Tao