Public/Localities/New-AspireLocality.ps1

<#
.SYNOPSIS
    Creates a new locality in the Aspire API.
.DESCRIPTION
    Uses Invoke-AspireRequest to perform a POST request to the /Localities endpoint.
.PARAMETER Body
    The request body as a hashtable containing the locality details (required).
.OUTPUTS
    The response from the API.
.EXAMPLE
    $body = @{
        # Add example body based on schema
    }
    New-AspireLocality -Body $body
#>

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

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