Public/New-GCRoutingSkill.ps1

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

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

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

.EXAMPLE
    New-GCRoutingSkill -Body @{ name = 'Billing Support' }
    Creates a new routing skill named 'Billing Support'.

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

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

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