Public/New-GCWebDeploymentConfiguration.ps1

<#
.SYNOPSIS
    Creates a new web deployment configuration.

.DESCRIPTION
    Creates a new web deployment configuration in Genesys Cloud.
    Uses the POST /api/v2/webdeployments/configurations endpoint.

.PARAMETER Body
    The web deployment configuration definition object.

.EXAMPLE
    $configBody = @{ name = 'My Config'; description = 'Web chat configuration' }
    New-GCWebDeploymentConfiguration -Body $configBody

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

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

    $endpoint = "webdeployments/configurations"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}