set_refresh_schedule
Set up automatic refresh for a Power BI dataset: enable or disable scheduling, define days, local times, and time zone. Requires AAD token with Power BI scopes.
Instructions
Set a published dataset's scheduled-refresh plan (PATCH .../refreshSchedule): enable/disable, the days, the local times and the time zone. Needs an AAD access token with the Power BI scopes (accessToken param or DAXOPS_PBI_TOKEN); never echoed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | comma-separated days, e.g. "Monday,Wednesday,Friday" | |
| times | No | comma-separated 24h times, e.g. "07:00,16:30" | |
| enabled | Yes | enable (true) or disable (false) the schedule | |
| datasetId | Yes | dataset id | |
| accessToken | No | AAD access token with Power BI scopes; omit to use DAXOPS_PBI_TOKEN | |
| workspaceId | Yes | workspace (group) id | |
| localTimeZoneId | No | Windows time-zone id, e.g. "New Zealand Standard Time" |