Create City
API operation: Open the endpoint in the API reference
Use POST /countries/{country}/cities to create a city under one country. The current public operation is City.register.
If available, the operation is restricted to role levels 0 and 1. It copies the route's country value into country_id before validating the request. The API Reference lists both name and country_id as required request fields, while the route also supplies the country value.
Optional fields described here include administrator_id and enabled. See the operation guide for the full request, response, and error schemas.
Legacy SDK example
const response = await ordering.countries(countryId).cities().save(data)
The SDK helper shown is cities(); confirm the SDK package and version before using it.