Is there a way to attache a cache refresh plan to a report with the new REST API? I can see how to upload a report, create a refresh plan, delete existing plans on a report but not how to attach a cache refresh plan to a report?
All available REST APIs are listed on SwaggerHub, including how to create and execute a cache refresh plan, please have a look at below links:
Can you give an example? I cannot get this to work at all, not the PUT/DELETE or POST. The Path seems to want the path of the the plan but it is not clear what this is.
If I try:
Invoke-RESTMethod -Uri "$restroot/CacheRefreshPlans(Path='/replib/cache')" -Method DELETE -UseDefaultCredentials
Where /replib/cache is a .rdl report with a cache defined, I just get a 404 error, for example.
The CachRefreshPlans route does not except a Path argument only and ID for the specific schedule. If you know the report that you want to get the schedules for you use this API:
that should get you all the schedules associated with that report. If your looking for a specific one you can use OData $filter operation in the URL.