Pax8API/Public/Quoting/Get-Pax8LibraryAttachmentMetadata.ps1
|
<#
.SYNOPSIS Download library attachment .DESCRIPTION Downloads single attachment from the library. OpenAPI: GET /v2/quote-attachments/{attachmentId} Scope: Quoting. Audience: https://api.pax8.com. .PARAMETER AttachmentId path parameter 'attachmentId'. .PARAMETER Download Must be set to true to download the file. Suggested values: true. .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8LibraryAttachmentMetadata -AttachmentId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function Get-Pax8LibraryAttachmentMetadata { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$AttachmentId, [ValidateSet('true')] [bool]$Download, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |