Pax8API/Public/Webhooks/Remove-Pax8WebhooksDelete.ps1
|
<#
.SYNOPSIS Delete webhook .DESCRIPTION Delete an instance of WebhookView. OpenAPI: DELETE /webhooks/{id} Scope: Webhooks. Audience: https://api.pax8.com. .PARAMETER Id path parameter 'id'. .EXAMPLE Remove-Pax8WebhooksDelete -Id '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/webhooks-api.json #> function Remove-Pax8WebhooksDelete { [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] param ( [Parameter(Mandatory = $true)] [guid]$Id, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } $target = 'DELETE /webhooks/{id}' if ($PSCmdlet.ShouldProcess($target, 'Remove-Pax8WebhooksDelete')) { Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } } |