Pax8API/Public/Quoting/Remove-Pax8QuoteShareEntry.ps1

<#
.SYNOPSIS
Delete quote access list entry
.DESCRIPTION
Deletes a specific access list entry from a quote.
OpenAPI: DELETE /v2/quotes/{quoteId}/access-list/{accessListEntryId}
Scope: Quoting. Audience: https://api.pax8.com.
.PARAMETER QuoteId
path parameter 'quoteId'.
.PARAMETER AccessListEntryId
path parameter 'accessListEntryId'.
.EXAMPLE
Remove-Pax8QuoteShareEntry -QuoteId '00000000-0000-0000-0000-000000000000' -AccessListEntryId '00000000-0000-0000-0000-000000000000'
.LINK
https://devx.pax8.com/openapi/quoting-endpoints.json
#>

function Remove-Pax8QuoteShareEntry {
    [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
    param (
        [Parameter(Mandatory = $true)]
        [guid]$QuoteId,

        [Parameter(Mandatory = $true)]
        [guid]$AccessListEntryId,

        [switch]$Raw
    )

    process {
        $boundParameters = @{}
        foreach ($entry in $PSBoundParameters.GetEnumerator()) {
            $boundParameters[$entry.Key] = $entry.Value
        }

        $target = 'DELETE /v2/quotes/{quoteId}/access-list/{accessListEntryId}'
        if ($PSCmdlet.ShouldProcess($target, 'Remove-Pax8QuoteShareEntry')) {
            Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters
        }
    }
}