soc/api/v1/customproperties/Update-CustomProperty.ps1

function Update-CustomProperty
{
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [object] $CustomProperty
    )

    if ($PSCmdlet.ShouldProcess($CustomProperty.name))
    {
        return Invoke-Api Put "/soc/api/v1/customproperties/$($CustomProperty.id)" -JsonBody $CustomProperty
    }
}