Public/Set-GCGroup.ps1
|
<# .SYNOPSIS Updates an existing group in Genesys Cloud. .DESCRIPTION Replaces the configuration of a specific group using a PUT request. API Endpoint: PUT /api/v2/groups/{groupId} .PARAMETER GroupId The unique identifier of the group to update. .PARAMETER Body The request body containing the group properties. Accepts a hashtable or JSON string. .EXAMPLE Set-GCGroup -GroupId '12345678-1234-1234-1234-123456789012' -Body @{ name = 'Updated Group Name'; version = 2 } Updates the specified group. .NOTES Genesys Cloud API: PUT /api/v2/groups/{groupId} #> function Set-GCGroup { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$GroupId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "groups/$GroupId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |