CostControlPatchProperties interface

Edits applied when properties is a non-empty object. Omitted fields retain their existing values; no defaults are applied. The complete merged result may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without changing the stored definition. Missing registration returns 403 FeatureNotRegistered before merging or no-op detection. Omitting or removing identity selections does not require this registration; omitted stored selections are preserved, subject to existing validation rules.

Properties

amount

Replaces the positive budget amount, measured in United States dollars for the Cost category or in whole tokens for the Tokens category.

category

The existing measurement category. Changing it after creation is not supported.

filter

Replaces the complete traffic filter. Set to null to select all eligible traffic within the owner's scope.

grouping

Replaces additional grouping. Omission preserves grouping; an empty array restores the owner's default counter. Null is not accepted.

notifications

Merges notifications by case-insensitive name, preserving existing name casing. Null entries delete notifications; null clears the collection. Omission or an empty object preserves existing notifications. New entries must supply all required notification fields after merging. The complete merged result may contain at most one notification, including disabled notifications; otherwise the request returns HTTP 400.

provider

The resource provider. If supplied, it must be Microsoft.CognitiveServices and cannot be null.

providerProperties

Merges provider-specific settings. Set to null to remove all blocking actions; omission preserves them.

timeGrain

Replaces the calendar-aligned UTC renewal interval.

timePeriod

Merges supplied dates into the existing validity window; omitted dates remain unchanged.

Property Details

amount

Replaces the positive budget amount, measured in United States dollars for the Cost category or in whole tokens for the Tokens category.

amount?: number

Property Value

number

category

The existing measurement category. Changing it after creation is not supported.

category?: string

Property Value

string

filter

Replaces the complete traffic filter. Set to null to select all eligible traffic within the owner's scope.

filter?: CostControlFilter

Property Value

grouping

Replaces additional grouping. Omission preserves grouping; an empty array restores the owner's default counter. Null is not accepted.

grouping?: CostControlGrouping[]

Property Value

notifications

Merges notifications by case-insensitive name, preserving existing name casing. Null entries delete notifications; null clears the collection. Omission or an empty object preserves existing notifications. New entries must supply all required notification fields after merging. The complete merged result may contain at most one notification, including disabled notifications; otherwise the request returns HTTP 400.

notifications?: Record<string, CostControlNotificationPatch>

Property Value

provider

The resource provider. If supplied, it must be Microsoft.CognitiveServices and cannot be null.

provider?: "Microsoft.CognitiveServices"

Property Value

"Microsoft.CognitiveServices"

providerProperties

Merges provider-specific settings. Set to null to remove all blocking actions; omission preserves them.

providerProperties?: CostControlProviderPropertiesPatch

Property Value

timeGrain

Replaces the calendar-aligned UTC renewal interval.

timeGrain?: string

Property Value

string

timePeriod

Merges supplied dates into the existing validity window; omitted dates remain unchanged.

timePeriod?: CostControlTimePeriodPatch

Property Value