Public/Set-GCLicenseOrganization.ps1
|
<# .SYNOPSIS Updates the organization license assignments. .DESCRIPTION Updates the license assignments for the organization in Genesys Cloud. Uses the POST /api/v2/license/organization endpoint. .PARAMETER Body The license assignment update object. .EXAMPLE $licenseBody = @{ licenses = @(@{ id = 'license-id' }) } Set-GCLicenseOrganization -Body $licenseBody .NOTES Genesys Cloud API: POST /api/v2/license/organization #> function Set-GCLicenseOrganization { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "license/organization" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |