Public/Get-GCRecording.ps1
|
<# .SYNOPSIS Retrieves a single recording for a conversation from Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve a specific recording by its ID within a given conversation. API Endpoint: GET /api/v2/conversations/{conversationId}/recordings/{recordingId} .PARAMETER ConversationId The unique identifier of the conversation. .PARAMETER RecordingId The unique identifier of the recording to retrieve. .EXAMPLE Get-GCRecording -ConversationId 'conv-abc123' -RecordingId 'rec-def456' Retrieves the specified recording from the specified conversation. .NOTES Genesys Cloud API: GET /api/v2/conversations/{conversationId}/recordings/{recordingId} #> function Get-GCRecording { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ConversationId, [Parameter(Mandatory = $true)] [string]$RecordingId ) $endpoint = "conversations/$ConversationId/recordings/$RecordingId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |