Public/Remove-GCPresenceDefinition.ps1
|
<# .SYNOPSIS Deletes a presence definition from Genesys Cloud. .DESCRIPTION Removes a presence definition from Genesys Cloud by sending a DELETE request. API Endpoint: DELETE /api/v2/presence/definitions/{definitionId} .PARAMETER DefinitionId The unique identifier of the presence definition to delete. .EXAMPLE Remove-GCPresenceDefinition -DefinitionId '12345678-1234-1234-1234-123456789012' Deletes the presence definition with the specified ID. .NOTES Genesys Cloud API: DELETE /api/v2/presence/definitions/{definitionId} #> function Remove-GCPresenceDefinition { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$DefinitionId ) $endpoint = "presence/definitions/$DefinitionId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |