Pax8API/Public/Quoting/Send-Pax8PreferencesAttachments.ps1
|
<#
.SYNOPSIS Upload preference attachments .DESCRIPTION Upload preference attachments based on library attachments. OpenAPI: POST /v2/quote-preferences/attachments Scope: Quoting. Audience: https://api.pax8.com. .PARAMETER Attachments body parameter 'attachments'. .PARAMETER Body Raw request body. This can be a hashtable, PSCustomObject, or pre-built JSON string. .EXAMPLE Send-Pax8PreferencesAttachments .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function Send-Pax8PreferencesAttachments { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [object[]]$Attachments, [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 } } |