Public/Set-GCRoutingSettings.ps1

<#
.SYNOPSIS
    Updates the routing settings for the organization in Genesys Cloud.

.DESCRIPTION
    Replaces the organization's routing settings using a PUT request.
    API Endpoint: PUT /api/v2/routing/settings

.PARAMETER Body
    The request body containing the routing settings. Accepts a hashtable or JSON string.

.EXAMPLE
    Set-GCRoutingSettings -Body @{ resetAgentScoreOnPresenceChange = $true }
    Updates the routing settings for the organization.

.NOTES
    Genesys Cloud API: PUT /api/v2/routing/settings
#>

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

    $endpoint = "routing/settings"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body
}