Public/Remove-GCOutboundCampaign.ps1
|
<# .SYNOPSIS Deletes an outbound campaign from Genesys Cloud. .DESCRIPTION Deletes an outbound campaign by its unique identifier using the Genesys Cloud API. API Endpoint: DELETE /api/v2/outbound/campaigns/{campaignId} .PARAMETER CampaignId The unique identifier of the campaign to delete. .EXAMPLE Remove-GCOutboundCampaign -CampaignId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' Deletes the outbound campaign with the specified ID. .NOTES Genesys Cloud API: DELETE /api/v2/outbound/campaigns/{campaignId} #> function Remove-GCOutboundCampaign { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$CampaignId ) $endpoint = "outbound/campaigns/$CampaignId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |