BillingTrustRuleResource.UpdateAsync Method

Definition

Update a Rule. The PATCH body is discriminated by kind and must match the existing rule's kind. For eduQualification rules, only supplementalDocuments is patchable, and only when evaluationState == actionRequired. For businessVerification rules, the patchable fields are supplementalDocuments and externalId, and only when evaluationState is pending or actionRequired. All other field/state combinations are rejected with 400 InvalidParameterValue or 409 RuleNotActionable.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Update.
  • Default Api Version. : 2026-03-17-preview.
  • Resource. : BillingTrustRuleResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.Trust.BillingTrustRuleResource>> UpdateAsync(Azure.ResourceManager.Billing.Trust.Models.BillingTrustRulePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Billing.Trust.Models.BillingTrustRulePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.Trust.BillingTrustRuleResource>>
override this.UpdateAsync : Azure.ResourceManager.Billing.Trust.Models.BillingTrustRulePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.Trust.BillingTrustRuleResource>>
Public Overridable Function UpdateAsync (patch As BillingTrustRulePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingTrustRuleResource))

Parameters

patch
BillingTrustRulePatch

The resource properties to be updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to