Forum Discussion

devnull's avatar
devnull
Frequent Visitor
4 years ago
Solved

Upload pbix file to Report Server using C# HttpClient

I am looking for an example for ages how to upload a PBIX file to Power BI Report Server.

 

With the help of Swagger

PBIRS | 2.0 | microsoft-rs | SwaggerHub

I have managed to upload a file from Power Shell,

but can't figure out how would it look like in C# using the HttpClient library.

 

Does anybody have an example?

 

(The HttpClient is mandatory for me to use)

 

 

 

 

2 Replies