Public/Get-GCArchitectPrompt.ps1
|
<# .SYNOPSIS Retrieves a specific architect prompt by ID from Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve a single architect prompt by its unique identifier. API Endpoint: GET /api/v2/architect/prompts/{promptId} .PARAMETER PromptId The unique identifier of the prompt to retrieve. .EXAMPLE Get-GCArchitectPrompt -PromptId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' Retrieves the prompt with the specified ID. .NOTES Genesys Cloud API: GET /api/v2/architect/prompts/{promptId} #> function Get-GCArchitectPrompt { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$PromptId ) $endpoint = "architect/prompts/$PromptId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |