Pax8API/Public/Partner/Get-Pax8ContactById.ps1
|
<#
.SYNOPSIS Get Contact By ID .DESCRIPTION Returns a contact OpenAPI: GET /companies/{companyId}/contacts/{contactId} Scope: Partner. Audience: https://api.pax8.com. .PARAMETER CompanyId path parameter 'companyId'. .PARAMETER ContactId path parameter 'contactId'. .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8ContactById -CompanyId '00000000-0000-0000-0000-000000000000' -ContactId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8ContactById { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$CompanyId, [Parameter(Mandatory = $true)] [guid]$ContactId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |