v1

latestOpenAPI 3.0.12026-07-245277551.2 MB
Amenities

Update property amenities

Replace the complete set of active property amenities in a single atomic transaction.

put/amenities/v1/properties/{propertyId}/amenities

Path parameters

propertyIdinteger required
Example:1

The property ID

Headers

Accept-Languagestring
Example:es-ES, en;q=0.8

RFC 5646 language preferences used for negotiation (e.g. es-ES, en;q=0.8).

Request body

amenitiesstring[]

List of amenity codes to set for the property

Example request

{
  "amenities": [
    "wifi"
  ]
}

Response

Property amenities updated successfully.

Example response

{
  "amenities": [
    {
      "code": "wifi",
      "name": "Wi-fi",
      "categoryCode": "technology",
      "isTop": true
    }
  ]
}