cacherefreshplans
1 TopicStruggling to create refresh plan with rest API
I try to create a new refresh plan for a power bi report on the report server. According to the documentation this should be possible with POST command: https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/CacheRefreshPlans/AddCacheRefreshPlan http://localhost/reports/api/v2.0/CacheRefreshPlans I'm using postman and in the body I have something like this: { "Id": "01234567-89ab-cdef-0123-456789abcdef", "Owner": "Username", "Description": "TestRefresh", "CatalogItemPath": "/path/to/report", "EventType": "DataModelRefresh", "Schedule": { "ScheduleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Definition": { "StartDateTime": "2021-09-21T15:51:04Z", "EndDate": "2021-09-29T15:51:04Z", "EndDateSpecified": true, "Recurrence": { "MinuteRecurrence": { "MinutesInterval": 0 }, "DailyRecurrence": { "DaysInterval": 0 }, "WeeklyRecurrence": { "WeeksInterval": 0, "WeeksIntervalSpecified": true, "DaysOfWeek": { "Sunday": true, "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true } }, "MonthlyRecurrence": { "Days": "string", "MonthsOfYear": { "January": true, "February": true, "March": true, "April": true, "May": true, "June": true, "July": true, "August": true, "September": true, "October": true, "November": true, "December": true } }, "MonthlyDOWRecurrence": { "WhichWeek": "FirstWeek", "WhichWeekSpecified": true, "DaysOfWeek": { "Sunday": true, "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true }, "MonthsOfYear": { "January": true, "February": true, "March": true, "April": true, "May": true, "June": true, "July": true, "August": true, "September": true, "October": true, "November": true, "December": true } } } } }, "LastRunTime": null, "LastStatus": null, "ModifiedBy": null, "ModifiedDate": null, "ParameterValues": [] } But I always get "500 InternalServer Error" response. Is there something wrong with the json or could it be an other problem? Unfortunally I did not find a detailed example on how to use the CacheRefreshPlans Api.Solved2.6KViews0likes4Comments