v1

latestOpenAPI 3.0.32026-07-2632131.4 MB
Address

Update Complex Address

Edit a complex's address. All children will be updated too.

put/address/{id}/update/complex

Path parameters

idstring required
Example:5b2149c9f579400024388c47

The Guesty ID of the complex for which you would like to edit the address.

Request body

isPublishedAddressEnabledboolean required

Example request

{
  "address": {
    "full": "30-19 32nd St, Long Island City, NY 11102, USA",
    "apartment": "4d",
    "city": "New York City",
    "country": "United States",
    "county": "Nassau County",
    "floor": "1D",
    "unitNumber": "30a",
    "location": {
      "lat": 40.7659021,
      "lng": -73.9208235
    },
    "neighborhood": "Astoria",
    "searchable": "30-19 32nd St, Long Island City, NY 11102, USA",
    "state": "New York",
    "street": "32nd Street",
    "zipcode": "11102",
    "buildingName": "Metropolis campus"
  },
  "publishedAddress": {
    "full": "30-19 32nd St, Long Island City, NY 11102, USA",
    "apartment": "4d",
    "city": "New York City",
    "country": "United States",
    "county": "Nassau County",
    "floor": "1D",
    "unitNumber": "30a",
    "location": {
      "lat": 40.7659021,
      "lng": -73.9208235
    },
    "neighborhood": "Astoria",
    "searchable": "30-19 32nd St, Long Island City, NY 11102, USA",
    "state": "New York",
    "street": "32nd Street",
    "zipcode": "11102",
    "buildingName": "Metropolis campus"
  },
  "isPublishedAddressEnabled": true
}

Response

Return updated complex addresses.

isPublishedAddressEnabledboolean

Example response

{
  "address": {
    "full": "30-19 32nd St, Long Island City, NY 11102, USA",
    "street": "32nd Street",
    "city": "New York",
    "country": "United States",
    "state": "New York",
    "location": {
      "lat": 40.7659021,
      "lng": -73.9208235
    },
    "zipcode": 11102
  },
  "publishedAddress": {
    "full": "30-19 32nd St, Long Island City, NY 11102, USA",
    "street": "32nd Street",
    "city": "New York",
    "country": "United States",
    "state": "New York",
    "location": {
      "lat": 40.7659021,
      "lng": -73.9208235
    },
    "zipcode": 11102
  }
}