Pax8API/Public/Quoting/New-Pax8Section.ps1
|
<#
.SYNOPSIS Create Section .DESCRIPTION Creates a new section within a specified quote to organize line items. OpenAPI: POST /v2/quotes/{quoteId}/sections Scope: Quoting. Audience: https://api.pax8.com. .PARAMETER QuoteId path parameter 'quoteId'. .PARAMETER Name body parameter 'name'. .PARAMETER Body Raw request body. This can be a hashtable, PSCustomObject, or pre-built JSON string. .EXAMPLE New-Pax8Section -QuoteId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/quoting-endpoints.json #> function New-Pax8Section { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$QuoteId, [Parameter(Mandatory = $true)] [string]$Name, [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 } } |