Public/New-GCOutboundRuleSet.ps1

<#
.SYNOPSIS
    Creates a new outbound rule set in Genesys Cloud.

.DESCRIPTION
    Creates a new outbound rule set using the Genesys Cloud API.
    API Endpoint: POST /api/v2/outbound/rulesets

.PARAMETER Body
    The rule set definition object. Should include properties such as name and rules.

.EXAMPLE
    $rsBody = @{ name = 'New Rule Set'; rules = @() }
    New-GCOutboundRuleSet -Body $rsBody
    Creates a new outbound rule set.

.NOTES
    Genesys Cloud API: POST /api/v2/outbound/rulesets
#>

function New-GCOutboundRuleSet {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [object]$Body
    )

    $endpoint = "outbound/rulesets"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}