Public/New-GCProcessAutomationTrigger.ps1
|
<# .SYNOPSIS Creates a new process automation trigger. .DESCRIPTION Creates a new process automation trigger in Genesys Cloud. Uses the POST /api/v2/processautomation/triggers endpoint. .PARAMETER Body The trigger definition object. .EXAMPLE $trigBody = @{ topicName = 'v2.detail.events'; name = 'My Trigger'; target = @{ type = 'Workflow'; id = 'flow-id' } } New-GCProcessAutomationTrigger -Body $trigBody .NOTES Genesys Cloud API: POST /api/v2/processautomation/triggers #> function New-GCProcessAutomationTrigger { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "processautomation/triggers" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |