Public/Company/CompanyCompanyTypeAssociations/Update-CWMCompanyTypeAssociation.ps1
function Update-CWMCompanyTypeAssociation { [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "")] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] [int]$CompanyID, [Parameter(Mandatory=$true)] [int]$TypeAssociationID, [Parameter(Mandatory=$true)] [validateset('add','replace','remove')] [string]$Operation, [Parameter(Mandatory=$true)] [string]$Path, [Parameter(Mandatory=$true)] $Value ) $URI = "https://$($script:CWMServerConnection.Server)/v4_6_release/apis/3.0/company/companies/$CompanyID/typeAssociations/$TypeAssociationID" return Invoke-CWMPatchMaster -Arguments $PsBoundParameters -URI $URI } |