No, first at all I imported my data in Power BI Desktop and did all the modelling, which have been a lot of work and complicated. Then I imported the pbix file in Power Bi Service. Now I want to update one table in the dataset with Power BI API and push data from a source to it, to show live data on my dashboards. But it didn't work.
Then to test what the problem is I created a very simple dataset with just one table (and three fields) with Power BI API and pushed data on it, which of course works.
Then I created exactly the same dataset and table in Power BI Desktop (table with just three fields) and exported it and imported it in Power BI Service. Then I tried to push the same data to it. But I recieve error message: the remote server returned an error (400) bad request.
So does it not work in Power BI?