Public/Set-GCConversationsCall.ps1

<#
.SYNOPSIS
    Updates a call conversation.

.DESCRIPTION
    Patches/updates properties of a specific call conversation in Genesys Cloud.
    Calls PATCH /api/v2/conversations/calls/{conversationId}.

.PARAMETER ConversationId
    The unique identifier of the call conversation to update.

.PARAMETER Body
    The request body containing the call properties to update.

.EXAMPLE
    $updateBody = @{
        recording = $true
    }
    Set-GCConversationsCall -ConversationId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -Body $updateBody

.NOTES
    Genesys Cloud API: PATCH /api/v2/conversations/calls/{conversationId}
#>

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

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

    $endpoint = "conversations/calls/$ConversationId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body
}