Public/Get-GCGamificationProfile.ps1

<#
.SYNOPSIS
    Retrieves a gamification profile by ID.

.DESCRIPTION
    Returns the details of a specific gamification profile from Genesys Cloud.
    Uses the GET /api/v2/gamification/profiles/{profileId} endpoint.

.PARAMETER ProfileId
    The unique identifier of the gamification profile to retrieve.

.EXAMPLE
    Get-GCGamificationProfile -ProfileId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/gamification/profiles/{profileId}
#>

function Get-GCGamificationProfile {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$ProfileId
    )

    $endpoint = "gamification/profiles/$ProfileId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}