Public/Service/BoardItemAssociations/Update-CWMBoardItemAssociation.ps1
function Update-CWMBoardItemAssociation { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(Mandatory = $true)] [Alias ('boardId')] [int]$parentId, [Parameter(Mandatory = $true)] [Alias ('id')] [int]$itemId, [Parameter(Mandatory = $true)] [int]$typeId, [Parameter(Mandatory = $true)] [validateset('add', 'replace', 'remove')] [string]$Operation, [Parameter(Mandatory = $true)] [string]$Path, [Parameter(Mandatory = $true)] $Value ) $Endpoint = "/service/boards/$parentId/items/$itemId/associations/$typeId" Invoke-CWMUpdateMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |