Public/Remove-GCExternalOrganization.ps1
|
<# .SYNOPSIS Deletes an external organization. .DESCRIPTION Removes the specified external organization from Genesys Cloud. Uses the DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId} endpoint. .PARAMETER ExternalOrganizationId The unique identifier of the external organization to delete. .EXAMPLE Remove-GCExternalOrganization -ExternalOrganizationId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId} #> function Remove-GCExternalOrganization { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ExternalOrganizationId ) $endpoint = "externalcontacts/organizations/$ExternalOrganizationId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |