Public/Contacts/Update-AspireContact.ps1

<#
.SYNOPSIS
    Updates an existing contact in the Aspire API.
.DESCRIPTION
    Uses Invoke-AspireRequest to perform a PUT request to the /Contacts endpoint.
.PARAMETER Body
    The request body as a hashtable containing the updated contact details (required).
.OUTPUTS
    The response from the API containing the contact ID.
.EXAMPLE
    $body = @{
        Contact = @{
            FirstName = "Jane"
            LastName = "Doe"
            Email = "jane.doe@example.com"
        }
        PayScheduleID = 1
    }
    Update-AspireContact -Body $body
#>

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

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