Public/Get-GCKnowledgeBase.ps1
|
<# .SYNOPSIS Retrieves a single knowledge base by ID. .DESCRIPTION Returns the details of a specific knowledge base from Genesys Cloud. Uses the GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId} endpoint. .PARAMETER KnowledgeBaseId The unique identifier of the knowledge base to retrieve. .EXAMPLE Get-GCKnowledgeBase -KnowledgeBaseId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId} #> function Get-GCKnowledgeBase { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$KnowledgeBaseId ) $endpoint = "knowledge/knowledgebases/$KnowledgeBaseId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |