0
0
Power BIbi_tool~10 mins

Workspaces in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new workspace in Power BI using the REST API.

Power BI
POST https://api.powerbi.com/v1.0/myorg/groups
{
  "name": "[1]"
}
Drag options to blanks, or click blank then click option'
ADashboard
BSales Workspace
CReport
DDataset
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Dataset' or 'Report' instead of a workspace name.
Leaving the name field empty.
2fill in blank
medium

Complete the code to list all workspaces the user has access to using Power BI REST API.

Power BI
GET https://api.powerbi.com/v1.0/myorg/[1]
Drag options to blanks, or click blank then click option'
Agroups
Breports
Cdatasets
Ddashboards
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'datasets' or 'reports' instead of 'groups'.
Confusing dashboards with workspaces.
3fill in blank
hard

Fix the error in the Power BI REST API call to update a workspace name.

Power BI
PATCH https://api.powerbi.com/v1.0/myorg/groups/[1]
{
  "name": "Updated Workspace"
}
Drag options to blanks, or click blank then click option'
AgroupId
BdatasetId
CreportId
DworkspaceId
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'workspaceId' which is not recognized by the API.
Confusing workspace ID with report or dataset IDs.
4fill in blank
hard

Fill both blanks to assign a user as an admin to a workspace using Power BI REST API.

Power BI
POST https://api.powerbi.com/v1.0/myorg/groups/[1]/users
{
  "identifier": "user@example.com",
  "groupUserAccessRight": "[2]"
}
Drag options to blanks, or click blank then click option'
AgroupId
BworkspaceId
CAdmin
DMember
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'workspaceId' instead of 'groupId' in the URL.
Assigning 'Member' instead of 'Admin' for admin rights.
5fill in blank
hard

Fill all three blanks to delete a workspace and confirm the deletion with the correct HTTP method and URL.

Power BI
[1] https://api.powerbi.com/v1.0/myorg/groups/[2]

// Confirm deletion with status code [3]
Drag options to blanks, or click blank then click option'
ADELETE
BgroupId
C200
DPOST
Attempts:
3 left
💡 Hint
Common Mistakes
Using POST instead of DELETE to delete the workspace.
Using 'workspaceId' instead of 'groupId' in the URL.
Expecting status code 204 instead of 200.