Public/New-GCTeam.ps1

<#
.SYNOPSIS
    Creates a new team.

.DESCRIPTION
    Creates a new team in Genesys Cloud.
    Uses the POST /api/v2/teams endpoint.

.PARAMETER Body
    The team definition object containing name and other properties.

.EXAMPLE
    $teamBody = @{ name = 'Support Team'; description = 'Customer support team' }
    New-GCTeam -Body $teamBody

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

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

    $endpoint = "teams"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}