Public/Set-GCJourneyActionMap.ps1
|
<# .SYNOPSIS Updates an existing journey action map. .DESCRIPTION Partially updates the specified journey action map in Genesys Cloud. Uses the PATCH /api/v2/journey/actionmaps/{actionMapId} endpoint. .PARAMETER ActionMapId The unique identifier of the action map to update. .PARAMETER Body The updated action map properties. .EXAMPLE $mapBody = @{ displayName = 'Updated Action Map' } Set-GCJourneyActionMap -ActionMapId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $mapBody .NOTES Genesys Cloud API: PATCH /api/v2/journey/actionmaps/{actionMapId} #> function Set-GCJourneyActionMap { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ActionMapId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "journey/actionmaps/$ActionMapId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body } |