Skip to main content

Update city

PUT 

/Countries/:countryCode/Cities/:cityCode

Update city

Request​

Path Parameters

    countryCode stringrequired

    The country code.

    cityCode stringrequired

    The city code.

Body

The city to be updated

    countryCode stringnullablerequired

    The unique country code.

    cityCode stringnullablerequired

    The unique code identifying the city.

    cityName stringnullablerequired

    The name of the city.

    updateInfo object

    Audit metadata capturing who last updated this record and when.

    actionBy stringnullablerequired

    The username or identifier of the user who performed the action.

    actionAt date-timerequired

    The date and time when the action was performed.

Responses​

The city was updated.

Schema
    countryCode stringnullablerequired

    The unique country code.

    cityCode stringnullablerequired

    The unique code identifying the city.

    cityName stringnullablerequired

    The name of the city.

    createInfo object

    Audit metadata capturing who created this record and when.

    actionBy stringnullablerequired

    The username or identifier of the user who performed the action.

    actionAt date-timerequired

    The date and time when the action was performed.

    updateInfo object

    Audit metadata capturing who last updated this record and when.

    actionBy stringnullablerequired

    The username or identifier of the user who performed the action.

    actionAt date-timerequired

    The date and time when the action was performed.

Loading...