Best Practices for Using REST API Calls in Terraform for Power BI related tasks

Hello,

I’m currently working on managing Power BI workspaces using Terraform, but there isn’t a specific provider for Power BI. I’ve been exploring the use of the restapi provider to interact with Power BI’s REST API for creating, updating, and deleting workspaces.

Can you help me with the terraform script for this?

Or suggest a best method to achieve this task of using api calls inside terraform script for managing powerbi workspaces and users.

Thanks,
Manohar