Public/New-GCMessagingSupportedContent.ps1

<#
.SYNOPSIS
    Creates a new messaging supported content profile.

.DESCRIPTION
    Creates a new supported content profile for messaging in Genesys Cloud.
    Uses the POST /api/v2/messaging/supportedcontent endpoint.

.PARAMETER Body
    The supported content definition object.

.EXAMPLE
    $contentBody = @{ name = 'Custom Content Profile' }
    New-GCMessagingSupportedContent -Body $contentBody

.NOTES
    Genesys Cloud API: POST /api/v2/messaging/supportedcontent
#>

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

    $endpoint = "messaging/supportedcontent"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}