Pax8API/Public/Quoting/Send-Pax8AttachmentToLibrary.ps1
|
<#
.SYNOPSIS Upload attachments to library .DESCRIPTION Uploads attachments to the library. OpenAPI: POST /v2/quote-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-Pax8AttachmentToLibrary .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function Send-Pax8AttachmentToLibrary { [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 } } |