Public/Project/Projects/Update-CWMProject.ps1
function Update-CWMProject { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(Mandatory = $true)] [Alias('projectId')] [int]$id, [Parameter(Mandatory = $true)] [validateset('add', 'replace', 'remove')] [string]$Operation, [Parameter(Mandatory = $true)] [string]$Path, [Parameter(Mandatory = $true)] $Value ) $Endpoint = "/project/projects/$($id)" Invoke-CWMUpdateMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |