Public/Set-GCWebDeployment.ps1

<#
.SYNOPSIS
    Updates an existing web deployment.

.DESCRIPTION
    Updates the specified web deployment in Genesys Cloud.
    Uses the PUT /api/v2/webdeployments/deployments/{deploymentId} endpoint.

.PARAMETER DeploymentId
    The unique identifier of the web deployment to update.

.PARAMETER Body
    The updated web deployment definition object.

.EXAMPLE
    $deployBody = @{ name = 'Updated Deployment' }
    Set-GCWebDeployment -DeploymentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $deployBody

.NOTES
    Genesys Cloud API: PUT /api/v2/webdeployments/deployments/{deploymentId}
#>

function Set-GCWebDeployment {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$DeploymentId,

        [Parameter(Mandatory = $true)]
        [object]$Body
    )

    $endpoint = "webdeployments/deployments/$DeploymentId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body
}