Public/Procurement/CatalogsItem/Update-CWMProductCatalog.ps1
function Update-CWMProductCatalog { [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "")] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] $CatalogID, [Parameter(Mandatory=$true)] [validateset('add','replace','remove')] [string]$Operation, [Parameter(Mandatory=$true)] $Path, [Parameter(Mandatory=$true)] $Value ) $URI = "https://$($script:CWMServerConnection.Server)/v4_6_release/apis/3.0/procurement/catalog/$CatalogID" return Invoke-CWMPatchMaster -Arguments $PsBoundParameters -URI $URI } |