Public/New-GCArchitectScheduleGroup.ps1

<#
.SYNOPSIS
    Creates a new architect schedule group in Genesys Cloud.

.DESCRIPTION
    Creates a new architect schedule group using the Genesys Cloud API.
    API Endpoint: POST /api/v2/architect/schedulegroups

.PARAMETER Body
    The schedule group definition object to create. Should include properties such as name and openSchedules.

.EXAMPLE
    $groupBody = @{ name = 'Holiday Schedule Group' }
    New-GCArchitectScheduleGroup -Body $groupBody
    Creates a new schedule group.

.NOTES
    Genesys Cloud API: POST /api/v2/architect/schedulegroups
#>

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

    $endpoint = "architect/schedulegroups"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}