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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

*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

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

Comments
v-yetao1-msft
Community Support
Status changed to: Needs Info

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