Mews · Schema

Restriction condition

The conditions or rules that must be met by a reservation for the restriction to apply.

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Type object Restriction type. Stay (Guests can't stay within specified dates.) Start (Guests can't check in within specified dates.) End (Guests can't check out within specified dates.)
ExactRateId string Unique identifier of the restricted exact `Rate`.
BaseRateId string Unique identifier of the restricted base `Rate`.
RateGroupId string Unique identifier of the restricted `Rate group`.
ResourceCategoryId string Unique identifier of the restricted `Resource category`.
ResourceCategoryType object Name of the restricted `Resource category type`. Room Bed Dorm Apartment Suite Villa Site Office MeetingRoom ParkingSpot Desk TeamArea Membership Tent CaravanOrRV UnequippedCampsite Bike ExtraBed Cot
StartUtc string Start date of the restriction time interval, specified in ISO 8601 format and adjusted to UTC - see [Datetimes](https://mews-systems.gitbook.io/connector-api/guidelines/serialization#datetimes) for im
EndUtc string End date of the restriction time interval, specified in ISO 8601 format and adjusted to UTC - see [Datetimes](https://mews-systems.gitbook.io/connector-api/guidelines/serialization#datetimes) for impo
Days array The restricted days of week. Defaults to all days when not provided. Ignored when the service uses a time unit longer than a day.
Hours object The restricted hours. Defaults to all hours when not provided.
View JSON Schema on GitHub

JSON Schema

mews-restrictionconditions-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RestrictionConditions",
  "title": "Restriction condition",
  "required": [
    "Type"
  ],
  "type": "object",
  "properties": {
    "Type": {
      "title": "Restriction type",
      "allOf": [
        {
          "$ref": "#/components/schemas/RestrictionTypeEnum"
        }
      ],
      "description": "Restriction type.\n\nStay (Guests can't stay within specified dates.)\n\nStart (Guests can't check in within specified dates.)\n\nEnd (Guests can't check out within specified dates.)",
      "x-enumNames": [
        "Stay",
        "Start",
        "End"
      ],
      "x-enumDescriptions": [
        "Guests can't stay within specified dates.",
        "Guests can't check in within specified dates.",
        "Guests can't check out within specified dates."
      ]
    },
    "ExactRateId": {
      "type": "string",
      "description": "Unique identifier of the restricted exact `Rate`.",
      "format": "uuid",
      "nullable": true
    },
    "BaseRateId": {
      "type": "string",
      "description": "Unique identifier of the restricted base `Rate`.",
      "format": "uuid",
      "nullable": true
    },
    "RateGroupId": {
      "type": "string",
      "description": "Unique identifier of the restricted `Rate group`.",
      "format": "uuid",
      "nullable": true
    },
    "ResourceCategoryId": {
      "type": "string",
      "description": "Unique identifier of the restricted `Resource category`.",
      "format": "uuid",
      "nullable": true
    },
    "ResourceCategoryType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ResourceCategoryTypeEnum"
        }
      ],
      "description": "Name of the restricted `Resource category type`.\n\nRoom\n\nBed\n\nDorm\n\nApartment\n\nSuite\n\nVilla\n\nSite\n\nOffice\n\nMeetingRoom\n\nParkingSpot\n\nDesk\n\nTeamArea\n\nMembership\n\nTent\n\nCaravanOrRV\n\nUnequippedCampsite\n\nBike\n\nExtraBed\n\nCot\n\nCrib\n\nConferenceRoom\n\nRooftop\n\nGarden\n\nRestaurant\n\nAmphitheater\n\nPrivateSpaces",
      "nullable": true
    },
    "StartUtc": {
      "type": "string",
      "description": "Start date of the restriction time interval, specified in ISO 8601 format and adjusted to UTC - see [Datetimes](https://mews-systems.gitbook.io/connector-api/guidelines/serialization#datetimes) for important information on format and implementation.",
      "nullable": true
    },
    "EndUtc": {
      "type": "string",
      "description": "End date of the restriction time interval, specified in ISO 8601 format and adjusted to UTC - see [Datetimes](https://mews-systems.gitbook.io/connector-api/guidelines/serialization#datetimes) for important information on format and implementation.",
      "nullable": true
    },
    "Days": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The restricted days of week. Defaults to all days when not provided. Ignored when the service uses a time unit longer than a day.",
      "nullable": true
    },
    "Hours": {
      "title": "Hours",
      "allOf": [
        {
          "$ref": "#/components/schemas/Hours"
        }
      ],
      "description": "The restricted hours. Defaults to all hours when not provided.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "description": "The conditions or rules that must be met by a reservation for the restriction to apply.",
  "x-schema-id": "RestrictionConditions"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mews-restrictionconditions"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.