Complete the code to create a new workspace in Power BI using the REST API.
POST https://api.powerbi.com/v1.0/myorg/groups { "name": "[1]" }
When creating a new workspace, you specify the workspace name in the JSON body under the "name" property.
Complete the code to list all workspaces the user has access to using Power BI REST API.
GET https://api.powerbi.com/v1.0/myorg/[1]
The endpoint 'groups' returns all workspaces (also called groups) the user can access.
Fix the error in the Power BI REST API call to update a workspace name.
PATCH https://api.powerbi.com/v1.0/myorg/groups/[1] { "name": "Updated Workspace" }
The API uses 'groupId' to identify the workspace to update.
Fill both blanks to assign a user as an admin to a workspace using Power BI REST API.
POST https://api.powerbi.com/v1.0/myorg/groups/[1]/users { "identifier": "user@example.com", "groupUserAccessRight": "[2]" }
The API requires the workspace ID as 'groupId' and the access right as 'Admin' to assign admin rights.
Fill all three blanks to delete a workspace and confirm the deletion with the correct HTTP method and URL.
[1] https://api.powerbi.com/v1.0/myorg/groups/[2] // Confirm deletion with status code [3]
Deleting a workspace uses the DELETE method on the groups endpoint with the groupId. A successful deletion returns status code 200.