Public/Contacts/New-AspireContact.ps1

<#
.SYNOPSIS
    Creates a new contact in the Aspire API.
.DESCRIPTION
    Uses Invoke-AspireRequest to perform a POST request to the /Contacts endpoint.
.PARAMETER Body
    The request body as a hashtable containing the contact details (required).
.OUTPUTS
    The response from the API containing the contact ID.
.EXAMPLE
    $body = @{
        Contact = @{
            FirstName = "John"
            LastName = "Doe"
            Email = "john.doe@example.com"
        }
        PayScheduleID = 1
    }
    New-AspireContact -Body $body
#>

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

    return Invoke-AspireRequest -Method POST -Path "/Contacts" -Body $Body -ApiVersion $null
}