Public/Get-GCTeam.ps1
|
<# .SYNOPSIS Retrieves a single team by ID. .DESCRIPTION Returns the details of a specific team from Genesys Cloud. Uses the GET /api/v2/teams/{teamId} endpoint. .PARAMETER TeamId The unique identifier of the team to retrieve. .EXAMPLE Get-GCTeam -TeamId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/teams/{teamId} #> function Get-GCTeam { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$TeamId ) $endpoint = "teams/$TeamId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |