Public/Users/Set-JBCompany.ps1
<#
.SYNOPSIS Update the given Company .PARAMETER id The company id .PARAMETER name The company's name .PARAMETER notes Administrative notes #> function Set-JBCompany { [CmdletBinding()] param ( [Parameter(Mandatory)] [int]$id, [Parameter(Mandatory = $false)] [String]$name, [Parameter(Mandatory = $false)] [String]$notes ) $Params = @{ Api = "UpdateCompany" Method = "POST" body = $PSBoundParameters } Invoke-JBMethod @Params } |