Public/New-GCOAuthClient.ps1
|
<# .SYNOPSIS Creates a new OAuth client. .DESCRIPTION Creates a new OAuth client in Genesys Cloud. Uses the POST /api/v2/oauth/clients endpoint. .PARAMETER Body The OAuth client definition object containing name, authorizedGrantType, and other properties. .EXAMPLE $clientBody = @{ name = 'My App'; authorizedGrantType = 'CLIENT-CREDENTIALS' } New-GCOAuthClient -Body $clientBody .NOTES Genesys Cloud API: POST /api/v2/oauth/clients #> function New-GCOAuthClient { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "oauth/clients" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |