House Rules

Update multiple unit-type house-rules

post/properties/house-rules/

Request

  • Base URL
    https://open-api.guesty.com/v1
  • URL
    https://open-api.guesty.com/v1/properties/house-rules/
  • Auth
    API key in header authorization

Request body

unitTypeIdstring

Example request

[
  {
    "unitTypeId": "5accf6954c5ed10025902aed",
    "houseRules": {
      "childrenRules": {
        "suitableForChildren": true,
        "suitableForInfants": true,
        "reason": "Children rules reason"
      },
      "petsAllowed": {
        "enabled": true,
        "chargeType": "Credit"
      },
      "smokingAllowed": {
        "enabled": false
      },
      "suitableForEvents": {
        "enabled": false
      },
      "additionalRules": "No alcohol",
      "quietBetween": {
        "enabled": true,
        "hours": {
          "start": "22:00",
          "end": "08:00"
        }
      },
      "minimumAge": 21
    }
  }
]

Response

House rules fields of unitTypes

suitableForChildrenboolean
suitableForInfantsboolean
petsAllowedboolean
petsChargedboolean
smokingAllowedboolean
partiesAllowedboolean
additionalRulesstring
minimumAgeinteger

Example response

[
  {
    "suitableForChildren": true,
    "suitableForInfants": false,
    "petsAllowed": true,
    "petsCharged": true,
    "smokingAllowed": false,
    "partiesAllowed": false,
    "additionalRules": "No alcohol",
    "quietHours": {
      "set": true,
      "start": "22:00",
      "end": "08:00"
    },
    "minimumAge": 21
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.