Capacities - Groups AssignMyWorkspaceToCapacity

Assigns My workspace to the specified capacity.

To unassign My workspace from a capacity, provide an empty GUID (00000000-0000-0000-0000-000000000000) as the capacityId.

Permissions

The user must have administrator rights or Assign permission on the capacity.

Required Scope

Capacity.ReadWrite.All and Workspace.ReadWrite.All

POST https://api.powerbi.com/v1.0/myorg/AssignToCapacity

Request Body

Name Required Type Description
capacityId True

string

The capacity ID. To unassign from a capacity, use an empty GUID (00000000-0000-0000-0000-000000000000).

Responses

Name Type Description
200 OK

OK

Examples

Example

Sample request

POST https://api.powerbi.com/v1.0/myorg/AssignToCapacity
{
  "capacityId": "0f084df7-c13d-451b-af5f-ed0c466403b2"
}

Sample response

Definitions

AssignToCapacityRequest

A Power BI assign-to-capacity request

Name Type Description
capacityId

string

The capacity ID. To unassign from a capacity, use an empty GUID (00000000-0000-0000-0000-000000000000).