Public/Set-GCOutboundContactList.ps1

<#
.SYNOPSIS
    Updates an existing outbound contact list in Genesys Cloud.

.DESCRIPTION
    Updates an outbound contact list by its unique identifier using the Genesys Cloud API.
    API Endpoint: PUT /api/v2/outbound/contactlists/{contactListId}

.PARAMETER ContactListId
    The unique identifier of the contact list to update.

.PARAMETER Body
    The updated contact list definition object.

.EXAMPLE
    $clBody = @{ name = 'Updated Contact List' }
    Set-GCOutboundContactList -ContactListId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' -Body $clBody
    Updates the specified contact list.

.NOTES
    Genesys Cloud API: PUT /api/v2/outbound/contactlists/{contactListId}
#>

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

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

    $endpoint = "outbound/contactlists/$ContactListId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body
}