Pax8API/Public/Quoting/Remove-Pax8Quote.ps1
|
<#
.SYNOPSIS Delete quote by ID .DESCRIPTION Deletes a quote by its quoteId. OpenAPI: DELETE /v2/quotes/{quoteId} Scope: Quoting. Audience: https://api.pax8.com. .PARAMETER QuoteId path parameter 'quoteId'. .EXAMPLE Remove-Pax8Quote -QuoteId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function Remove-Pax8Quote { [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] param ( [Parameter(Mandatory = $true)] [guid]$QuoteId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } $target = 'DELETE /v2/quotes/{quoteId}' if ($PSCmdlet.ShouldProcess($target, 'Remove-Pax8Quote')) { Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } } |