Share via


Currency Allocation - Patch Currency Allocation By Environment

Allocate and deallocate the currencies for the environment.

PATCH https://api.powerplatform.com/licensing/environments/{environmentId}/allocations?api-version=2022-03-01-preview

URI Parameters

Name In Required Type Description
environmentId
path True

string

The environment ID.

api-version
query True

string

The API version.

Request Body

Name Type Description
currencyAllocations

CurrencyAllocationRequestModelV1[]

Specify the request body with environment ID and currency details.

Responses

Name Type Description
200 OK

AllocationsByEnvironmentResponseModelV1

Success

400 Bad Request

Bad Request

401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

404 Not Found

Not Found

Security

oauth2

Microsoft Entra ID OAuth2

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com

Scopes

Name Description
.default .default

Definitions

Name Description
AllocationsByEnvironmentPatchRequestModelV1
AllocationsByEnvironmentResponseModelV1

The response body includes environment ID and allocated currencies.

CurrencyAllocationRequestModelV1
CurrencyAllocationResponseModelV1
ExternalCurrencyType

Available currency type which can be allocated to environment.

AllocationsByEnvironmentPatchRequestModelV1

Name Type Description
currencyAllocations

CurrencyAllocationRequestModelV1[]

Specify the request body with environment ID and currency details.

AllocationsByEnvironmentResponseModelV1

The response body includes environment ID and allocated currencies.

Name Type Description
currencyAllocations

CurrencyAllocationResponseModelV1[]

The collection of currencies with allocation count.

environmentId

string

The environment ID for which the currency has been allocated.

CurrencyAllocationRequestModelV1

Name Type Description
allocated

integer (int32)

Specify the currency count.

currencyType

ExternalCurrencyType

Available currency type which can be allocated to environment.

CurrencyAllocationResponseModelV1

Name Type Description
allocated

integer (int32)

The allocated count of currency type

currencyType

ExternalCurrencyType

Available currency type which can be allocated to environment.

ExternalCurrencyType

Available currency type which can be allocated to environment.

Value Description
AI
AppPass
AppPassForTeams
Invoice
MCSMessages
MCSSessions
PAHostedRPA
PAUnattendedRPA
PerFlowPlan
PortalAddOns
PortalLogins
PortalViews
PowerAutomatePerProcess
PowerPagesAnonymous
PowerPagesAuthenticated
ProcessMiningDataStorage
SCMessages
VAConversations