Public/Get-GCContentManagementWorkspace.ps1

<#
.SYNOPSIS
    Retrieves a single content management workspace by ID.

.DESCRIPTION
    Returns the details of a specific content management workspace from Genesys Cloud.
    Uses the GET /api/v2/contentmanagement/workspaces/{workspaceId} endpoint.

.PARAMETER WorkspaceId
    The unique identifier of the workspace to retrieve.

.EXAMPLE
    Get-GCContentManagementWorkspace -WorkspaceId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/contentmanagement/workspaces/{workspaceId}
#>

function Get-GCContentManagementWorkspace {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$WorkspaceId
    )

    $endpoint = "contentmanagement/workspaces/$WorkspaceId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}