Public/Set-GCKnowledgeBase.ps1
|
<# .SYNOPSIS Updates an existing knowledge base. .DESCRIPTION Partially updates the specified knowledge base in Genesys Cloud. Uses the PATCH /api/v2/knowledge/knowledgebases/{knowledgeBaseId} endpoint. .PARAMETER KnowledgeBaseId The unique identifier of the knowledge base to update. .PARAMETER Body The updated knowledge base properties. .EXAMPLE $kbBody = @{ name = 'Updated KB' } Set-GCKnowledgeBase -KnowledgeBaseId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $kbBody .NOTES Genesys Cloud API: PATCH /api/v2/knowledge/knowledgebases/{knowledgeBaseId} #> function Set-GCKnowledgeBase { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$KnowledgeBaseId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "knowledge/knowledgebases/$KnowledgeBaseId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body } |