Not sure what a REST API is? Or what you can do with them in Power BI? Find out how you can easily take advantage of them without having to write a bunch of code. Use PowerShell instead!
REST API Reference Documentation
Power BI PowerShell Reference Documentation
Use Microsoft Flow, and other options, to refresh your Power BI dataset
Refresh Dataset In Group API
Refresh History in Group API