Pax8API/Public/Quoting/Add-Pax8QuoteAttachmentsToLibrary.ps1

<#
.SYNOPSIS
Add quote attachments to library
.DESCRIPTION
Adds existing quote attachments to the library.
OpenAPI: POST /v2/quote-attachments/shared
Scope: Quoting. Audience: https://api.pax8.com.
.PARAMETER Body
Raw request body. This can be a hashtable, PSCustomObject, or pre-built JSON string.
.EXAMPLE
Add-Pax8QuoteAttachmentsToLibrary
.LINK
https://devx.pax8.com/openapi/quoting-endpoints.json
#>

function Add-Pax8QuoteAttachmentsToLibrary {
    [CmdletBinding()]
    param (
        [Parameter(ValueFromPipeline = $true)]
        [object]$Body,

        [switch]$Raw
    )

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

        Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters
    }
}