Public/Set-GCConversationParticipantWrapup.ps1
|
<# .SYNOPSIS Updates the wrapup for a conversation participant. .DESCRIPTION Sets or updates the wrapup code and details for a specific participant in a conversation. Calls PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/wrapup. .PARAMETER ConversationId The unique identifier of the conversation. .PARAMETER ParticipantId The unique identifier of the participant. .PARAMETER Body The request body containing the wrapup code and optional notes. .EXAMPLE $wrapupBody = @{ code = 'sales-inquiry' notes = 'Customer asked about pricing' } Set-GCConversationParticipantWrapup -ConversationId 'conv-id' -ParticipantId 'part-id' -Body $wrapupBody .NOTES Genesys Cloud API: PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/wrapup #> function Set-GCConversationParticipantWrapup { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ConversationId, [Parameter(Mandatory = $true)] [string]$ParticipantId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "conversations/$ConversationId/participants/$ParticipantId/wrapup" return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body } |