Pax8API/Public/Quoting/Get-Pax8AttachmentMetadata.ps1
|
<#
.SYNOPSIS Download attachment .DESCRIPTION Downloads single attachment from a specified quote. OpenAPI: GET /v2/quotes/{quoteId}/attachments/{attachmentId} Scope: Quoting. Audience: https://api.pax8.com. .PARAMETER QuoteId path parameter 'quoteId'. .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-Pax8AttachmentMetadata -QuoteId '00000000-0000-0000-0000-000000000000' -AttachmentId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function Get-Pax8AttachmentMetadata { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$QuoteId, [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 } } |