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