<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API Call - Help with &amp;quot;Add Cache Refresh Plan&amp;quot; in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4749429#M41276</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1299544"&gt;@z-rmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="167" data-end="387"&gt;The docs are a bit lacking when it comes to real-world examples for the "Add Cache Refresh Plan" call. I ran into this myself and here’s what actually worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="389" data-end="681"&gt;1. Use the official SwaggerHub for PBIRS:&amp;nbsp;It’s much more helpful than the standard docs, and you can see exactly what the body should look like.&lt;/P&gt;
&lt;P data-start="683" data-end="847"&gt;&lt;BR /&gt;2. Sample JSON payload: When you create a scheduled refresh via the Report Server portal, the API call looks like this (you can check using browser dev tools):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "Owner": null,
  "Description": "Your description here",
  "CatalogItemPath": "/your/path/to/report",
  "EventType": "DataModelRefresh",
  "Schedule": {
    "ScheduleID": null,
    "Definition": {
      "StartDateTime": "2025-07-01T04:00:00+10:00",
      "EndDateSpecified": false,
      "EndDate": "1981-02-01T00:00:00+10:00",
      "Recurrence": {
        "DailyRecurrence": {
          "DaysInterval": 1
        }
      }
    }
  },
  "ScheduleDescription": "",
  "ParameterValues": []
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1356" data-end="1371"&gt;Heads up:&amp;nbsp;Leave ScheduleID as null or just omit it. Make sure CatalogItemPath matches your report’s path exactly.&lt;/P&gt;
&lt;P data-start="1761" data-end="1987"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 13:56:19 GMT</pubDate>
    <dc:creator>rohit1991</dc:creator>
    <dc:date>2025-07-22T13:56:19Z</dc:date>
    <item>
      <title>API Call - Help with "Add Cache Refresh Plan"</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748784#M41269</link>
      <description>&lt;P&gt;I'd like to be able to programmatically create a Cache Refresh Plan attached to a particular report hosted on our Report Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can manually create a plan under "Scheduled refresh" when I manage the report via the Report Server web portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found documentation for the API here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi-report/cache-refresh-plans/add-cache-refresh-plan" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi-report/cache-refresh-plans/add-cache-refresh-plan&lt;/A&gt;&amp;nbsp;...&amp;nbsp;However, there doesn't seem to be a sample body or template which I can model my own API call, and I don't seem to be able to catch the call in my browser network-watch dev tool . I have successfully done a few other API commands, like &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi-report/power-bi-reports/delete-power-bi-report" target="_self"&gt;deleting&lt;/A&gt; and &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi-report/power-bi-reports/add-power-bi-report" target="_self"&gt;adding&lt;/A&gt; Power BI Reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a location I can look for more thorough documentation, or can someone provide me with a sample?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 16:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748784#M41269</guid>
      <dc:creator>z-rmo</dc:creator>
      <dc:date>2025-06-30T16:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: API Call - Help with "Add Cache Refresh Plan"</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748788#M41270</link>
      <description>&lt;P&gt;I am using Power BI Report Server (January 2025), version&amp;nbsp;&lt;SPAN&gt;1.22.9153.7886.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 16:59:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748788#M41270</guid>
      <dc:creator>z-rmo</dc:creator>
      <dc:date>2025-06-30T16:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: API Call - Help with "Add Cache Refresh Plan"</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748940#M41271</link>
      <description>&lt;P&gt;I'm not sure why they moved away from using SwaggerHub for documentation, but the docs there still have an example of how to call this api&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/CacheRefreshPlans/AddCacheRefreshPlan" target="_blank"&gt;https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/CacheRefreshPlans/AddCacheRefreshPlan&lt;/A&gt;&amp;nbsp;And when I use the browser tools in Edge it captures the POST call to create a cache refresh plan.&lt;BR /&gt;&lt;BR /&gt;Below is an example I captured when creating a scheduled refresh for my Power BI report called "local Adv Works"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
	"Owner": null,
	"Description": "test2",
	"CatalogItemPath": "/local Adv Wrks",
	"EventType": "DataModelRefresh",
	"Schedule": {
		"ScheduleID": null,
		"Definition": {
			"StartDateTime": "2025-07-01T04:00:00+10:00",
			"EndDateSpecified": false,
			"EndDate": "1901-02-01T00:00:00+10:00",
			"Recurrence": {
				"DailyRecurrence": {
					"DaysInterval": 1
				}
			}
		}
	},
	"ScheduleDescription": "",
	"ParameterValues": []
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 22:47:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4748940#M41271</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2025-06-30T22:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: API Call - Help with "Add Cache Refresh Plan"</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4749429#M41276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1299544"&gt;@z-rmo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="167" data-end="387"&gt;The docs are a bit lacking when it comes to real-world examples for the "Add Cache Refresh Plan" call. I ran into this myself and here’s what actually worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="389" data-end="681"&gt;1. Use the official SwaggerHub for PBIRS:&amp;nbsp;It’s much more helpful than the standard docs, and you can see exactly what the body should look like.&lt;/P&gt;
&lt;P data-start="683" data-end="847"&gt;&lt;BR /&gt;2. Sample JSON payload: When you create a scheduled refresh via the Report Server portal, the API call looks like this (you can check using browser dev tools):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "Owner": null,
  "Description": "Your description here",
  "CatalogItemPath": "/your/path/to/report",
  "EventType": "DataModelRefresh",
  "Schedule": {
    "ScheduleID": null,
    "Definition": {
      "StartDateTime": "2025-07-01T04:00:00+10:00",
      "EndDateSpecified": false,
      "EndDate": "1981-02-01T00:00:00+10:00",
      "Recurrence": {
        "DailyRecurrence": {
          "DaysInterval": 1
        }
      }
    }
  },
  "ScheduleDescription": "",
  "ParameterValues": []
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1356" data-end="1371"&gt;Heads up:&amp;nbsp;Leave ScheduleID as null or just omit it. Make sure CatalogItemPath matches your report’s path exactly.&lt;/P&gt;
&lt;P data-start="1761" data-end="1987"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4749429#M41276</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-07-22T13:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: API Call - Help with "Add Cache Refresh Plan"</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4749902#M41287</link>
      <description>&lt;P&gt;Thank you for the Swagger link and the message body example! The Swagger will be a useful resource going forward--until Microsoft releases a new version of the API, I suppose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out that I was close, having modeled a JSON object from a GET response. However, I was providing a null "ID" value which was&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; wanted by the server for the POST.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 15:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/API-Call-Help-with-quot-Add-Cache-Refresh-Plan-quot/m-p/4749902#M41287</guid>
      <dc:creator>z-rmo</dc:creator>
      <dc:date>2025-07-01T15:11:21Z</dc:date>
    </item>
  </channel>
</rss>

