Public/Set-GCOAuthClient.ps1
|
<# .SYNOPSIS Updates an existing OAuth client. .DESCRIPTION Updates the specified OAuth client in Genesys Cloud. Uses the PUT /api/v2/oauth/clients/{clientId} endpoint. .PARAMETER ClientId The unique identifier of the OAuth client to update. .PARAMETER Body The updated OAuth client definition object. .EXAMPLE $clientBody = @{ name = 'Updated App' } Set-GCOAuthClient -ClientId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $clientBody .NOTES Genesys Cloud API: PUT /api/v2/oauth/clients/{clientId} #> function Set-GCOAuthClient { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ClientId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "oauth/clients/$ClientId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |