Public/Company/ContactCommunications/Update-CWMContactCommunication.ps1
function Update-CWMContactCommunication { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] [Alias('contactId')] [int]$parentId, [Parameter(Mandatory=$true)] [validateset('add','replace','remove')] [string]$Operation, [Parameter(Mandatory=$true)] [string]$Path, [Parameter(Mandatory=$true)] $Value ) $Endpoint = "/company/contacts/$($parentId)/communications" Invoke-CWMPatchMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |