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