Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Update RDL report using API does nothing

Using May 2021 PBIRS API

 

The CatalogItems PATCH API all to update a .rdl report seems to do nothing when trying to update the report. POST works fine and creates the report. PATCH to replace the report with updated contents returns 204 code but the report is not changed. The API docs say that only properties in the body that are to be changed need to be passed, so I have been passing:

{
  "@odata.type": "#Model.Report",
  "Content": "<base64-encoded report, exactly the same as works fine in the POST>"
}

 

This just returns a 204 and the report changed time on the server is not updated and the contents of the report are not changed.

I can delete and re-create but this changes the ID of the report and its schedules, causing more complications later.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous 
    I am not sure about whether you can use patch method to update only part of the source, as far as I know, only Post method is often used in power bi. May I ask which API docs did you read about this.

     

     

    Paul Zheng