Public/Set-GCGamificationStatus.ps1

<#
.SYNOPSIS
    Updates the gamification status.

.DESCRIPTION
    Updates the gamification status for the organization in Genesys Cloud.
    Uses the PUT /api/v2/gamification/status endpoint.

.PARAMETER Body
    The updated gamification status object.

.EXAMPLE
    $statusBody = @{ isActive = $true }
    Set-GCGamificationStatus -Body $statusBody

.NOTES
    Genesys Cloud API: PUT /api/v2/gamification/status
#>

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

    $endpoint = "gamification/status"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body
}