$ 0 0 Just have you two synced up.I think your code is for Power BI Embedded while I think is looking for the REST API for Power BI Service.