Public/Remove-GCAlertingRule.ps1
|
<# .SYNOPSIS Deletes an alerting rule. .DESCRIPTION Removes the specified alerting rule from Genesys Cloud. Uses the DELETE /api/v2/alerting/rules/{ruleId} endpoint. .PARAMETER RuleId The unique identifier of the alerting rule to delete. .EXAMPLE Remove-GCAlertingRule -RuleId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: DELETE /api/v2/alerting/rules/{ruleId} #> function Remove-GCAlertingRule { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$RuleId ) $endpoint = "alerting/rules/$RuleId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |