Public/New-GCFlowsDatatable.ps1

<#
.SYNOPSIS
    Creates a new flow datatable in Genesys Cloud.

.DESCRIPTION
    Creates a new flow datatable using the Genesys Cloud API.
    API Endpoint: POST /api/v2/flows/datatables

.PARAMETER Body
    The datatable definition object to create. Should include properties such as name and schema.

.EXAMPLE
    $dtBody = @{ name = 'Customer Lookup Table' }
    New-GCFlowsDatatable -Body $dtBody
    Creates a new flow datatable.

.NOTES
    Genesys Cloud API: POST /api/v2/flows/datatables
#>

function New-GCFlowsDatatable {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [object]$Body
    )

    $endpoint = "flows/datatables"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}