Public/Localities/Update-AspireLocality.ps1

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

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

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