Public/Finance/AgreementSites/Remove-CWMAgreementSite.ps1
function Remove-CWMAgreementSite { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] [Alias('agreementId')] [int]$parentId, [Parameter(Mandatory=$true)] [Alias('siteId')] [int]$id ) $Endpoint = "/finance/agreements/$($parentId)/sites/$($id)" Invoke-CWMRemoveMaster -Endpoint $Endpoint } |