Public/Set-GCOrganization.ps1
|
<# .SYNOPSIS Updates the current organization in Genesys Cloud. .DESCRIPTION Replaces the organization configuration using a PUT request. This can update organization-level settings such as name, domain, and other properties. API Endpoint: PUT /api/v2/organizations/me .PARAMETER Body The request body containing the organization properties to update. Accepts a hashtable or JSON string. .EXAMPLE Set-GCOrganization -Body @{ name = 'Updated Org Name'; version = 1 } Updates the organization name. .NOTES Genesys Cloud API: PUT /api/v2/organizations/me #> function Set-GCOrganization { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "organizations/me" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |