{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autohost/json-schema/autohost-listing-create-request-schema.json",
  "title": "ListingCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autohost-listings-api-openapi.yml#/components/schemas/ListingCreateRequest",
  "required": [
    "my_id",
    "status",
    "name",
    "nickname",
    "property_type",
    "accommodates",
    "location.street",
    "location.city",
    "location.country",
    "location.state",
    "location.zipcode"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "my_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "name": {
      "type": "string"
    },
    "nickname": {
      "type": "string"
    },
    "property_type": {
      "type": "string",
      "enum": [
        "Apartment",
        "Cottage",
        "Condominium",
        "House",
        "Serviced Apartment",
        "Boat",
        "Camper/RV",
        "Chalet",
        "Bed&Breakfast",
        "Villa",
        "Tent",
        "Other",
        "Cabin",
        "Townhouse",
        "Bungalow",
        "Hut",
        "Dorm",
        "Plane",
        "Treehouse",
        "Yurt",
        "Tipi",
        "Igloo",
        "Earth House",
        "Island",
        "Cave",
        "Castle",
        "Studio"
      ]
    },
    "accommodates": {
      "type": "number"
    },
    "bedrooms": {
      "type": "number"
    },
    "bathrooms": {
      "type": "number"
    },
    "beds": {
      "type": "number"
    },
    "check_in_time": {
      "type": "number"
    },
    "check_out_time": {
      "type": "number"
    },
    "location": {
      "type": "object",
      "properties": {
        "building": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "zipcode": {
          "type": "string"
        },
        "geo": {
          "type": "object",
          "properties": {
            "lat": {
              "type": "number"
            },
            "lon": {
              "type": "number"
            }
          }
        }
      }
    },
    "pictures": {
      "type": "object",
      "properties": {
        "large_url": {
          "type": "string"
        },
        "regular_url": {
          "type": "string"
        },
        "thumbnail_url": {
          "type": "string"
        }
      }
    }
  }
}