Public/New-GCRoutingSkillGroup.ps1

<#
.SYNOPSIS
    Creates a new routing skill group in Genesys Cloud.

.DESCRIPTION
    Creates a new routing skill group in Genesys Cloud by sending a POST request.
    API Endpoint: POST /api/v2/routing/skillgroups

.PARAMETER Body
    The request body containing the skill group properties. Accepts a hashtable or JSON string.
    Required properties typically include 'name' and skill criteria.

.EXAMPLE
    New-GCRoutingSkillGroup -Body @{ name = 'Advanced Support'; description = 'Agents with advanced skills' }
    Creates a new routing skill group.

.NOTES
    Genesys Cloud API: POST /api/v2/routing/skillgroups
#>

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

    $endpoint = "routing/skillgroups"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}