Admin - Capacities AssignWorkspacesToCapacity

Assigns the specified workspaces to the specified Premium capacity.

Permissions

The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator).

Required Scope

Tenant.Read.All or Tenant.ReadWrite.All

POST https://api.powerbi.com/v1.0/myorg/admin/capacities/AssignWorkspaces

Request Body

Name Type Description
capacityMigrationAssignments

Assignment contract for migrating workspaces to a premium capacity as tenant admin

Responses

Name Type Description
200 OK

OK

Examples

Example

Sample Request

POST https://api.powerbi.com/v1.0/myorg/admin/capacities/AssignWorkspaces

Sample Response

Definitions

AssignWorkspacesToCapacityRequest

A request to assign workspaces to a premium capacity

CapacityMigrationAssignment

Assignment contract for migrating workspaces to a premium capacity as tenant admin

AssignWorkspacesToCapacityRequest

A request to assign workspaces to a premium capacity

Name Type Description
capacityMigrationAssignments

Assignment contract for migrating workspaces to a premium capacity as tenant admin

CapacityMigrationAssignment

Assignment contract for migrating workspaces to a premium capacity as tenant admin

Name Type Description
targetCapacityObjectId
  • string

The premium capacity ID

workspacesToAssign
  • string[]

The workspace IDs to migrate to a premium capacity