soc/api/v1/registry/Update-RegistrySetting.ps1

function Update-RegistrySetting
{
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [object] $RegistrySetting
    )
    
    if ($PSCmdlet.ShouldProcess($RegistrySetting.name))
    {
        return Invoke-Api Put "/soc/api/v1/registry/$($RegistrySetting.name)" -JsonBody $RegistrySetting
    }
}