Public/Set-GCExternalOrganization.ps1
|
<# .SYNOPSIS Updates an existing external organization. .DESCRIPTION Updates the specified external organization in Genesys Cloud. Uses the PUT /api/v2/externalcontacts/organizations/{externalOrganizationId} endpoint. .PARAMETER ExternalOrganizationId The unique identifier of the external organization to update. .PARAMETER Body The updated external organization definition object. .EXAMPLE $orgBody = @{ name = 'Acme Corporation' } Set-GCExternalOrganization -ExternalOrganizationId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $orgBody .NOTES Genesys Cloud API: PUT /api/v2/externalcontacts/organizations/{externalOrganizationId} #> function Set-GCExternalOrganization { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ExternalOrganizationId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "externalcontacts/organizations/$ExternalOrganizationId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |