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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"datasetId": "<datasetId>",
"enabled": "<enabled>"
},
"name": "set_refresh_schedule"
}
}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" |