Forum Discussion
Upload a JSON file using Power BI API
Hi FelixC
According to the blog, Power BI supports us to create a dataflow from a model.json file.
- To import a file, specify the content type multipart/form-data in the request headers and encode the file as form data in the request body.
- To create a dataflow from a model.json file, set
datasetDisplayNameto model.json, as described in URI parameters.
We can use dataflow as the datasource to create a dataset.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, but here
I can't add my file and I don't know how to encode the file as form data in this form.
In postman there is a section for "form data" file and it works for pbix file but not for json.
Félix
- Anonymous4 years agoNot applicable
Hi FelixC
I find a post with similar requirement like yours. I hope it could help you.
For reference: Power BI API Dataflow Import Operation
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- FelixC4 years agoNew Member
Hi Anonymous,
Thanks for the link, I'll give it a try.
So after multiple research it is not possible to add data in dataset from a json. This API route is used to create dataflow!
Best Regards
Félix