Properties
| Name | Type | Description |
|---|---|---|
| ServiceId | string | Unique identifier of the [Service](https://mews-systems.gitbook.io/connector-api/operations/services#service) to assign block to. |
| RateId | string | Unique identifier of the [Rate](https://mews-systems.gitbook.io/connector-api/operations/rates#rate) to assign block to. |
| FirstTimeUnitStartUtc | string | Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format. |
| LastTimeUnitStartUtc | string | End of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format. |
| ReleasedUtc | string | The moment when the block and its availability is released, in UTC timezone ISO 8601 format. Takes precedence over `RollingReleaseOffset`. |
| RollingReleaseOffset | string | Exact offset from the start of availability adjustments to the moment the availability adjustment should be released, in ISO 8601 duration format. Ignored if `ReleasedUtc` is specified. |
| Name | string | The name of the block. |
| VoucherCode | string | Voucher code providing access to specified private [Rate](https://mews-systems.gitbook.io/connector-api/operations/rates#rate). |
| BookerId | string | Unique identifier of the Booker as a creator of an availability block. |
| CompanyId | string | Unique identifier of [Company](https://mews-systems.gitbook.io/connector-api/operations/companies#company). |
| TravelAgencyId | string | Unique identifier of travel agency (`Company` with a `TravelAgencyContract`). |
| Budget | object | The tentative budget for the total price of reservations. |
| ReservationPurpose | object | The purpose of the block. Leisure Business Student |
| ExternalIdentifier | string | Identifier of the block from external system. |
| Notes | string | Additional notes of the block. |
| State | object | State of the availability block. Confirmed (The block deducts availability and can have reservations assigned.) Optional (The block deducts availability and cannot have reservations assigned.) Inquire |
| QuoteId | string | Unique identifier of the Mews Events quote associated with the availability block. |
| PurchaseOrderNumber | string | Unique number of the purchase order. This number is propagated to any newly picked up `Reservation` within the block. |
| BusinessSegmentId | string | Unique identifier of the business segment. |
| PickupDistribution | object | Specifies how reservations within the block are distributed for pickup. Defaults to `AllInOneGroup` if not provided. This value cannot be updated after creation. AllInOneGroup (All created reservation |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AvailabilityBlockAddParameters",
"title": "Availability block parameters",
"required": [
"FirstTimeUnitStartUtc",
"LastTimeUnitStartUtc",
"RateId",
"ServiceId",
"State"
],
"type": "object",
"properties": {
"ServiceId": {
"type": "string",
"description": "Unique identifier of the [Service](https://mews-systems.gitbook.io/connector-api/operations/services#service) to assign block to.",
"format": "uuid"
},
"RateId": {
"type": "string",
"description": "Unique identifier of the [Rate](https://mews-systems.gitbook.io/connector-api/operations/rates#rate) to assign block to.",
"format": "uuid"
},
"FirstTimeUnitStartUtc": {
"minLength": 1,
"type": "string",
"description": "Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format."
},
"LastTimeUnitStartUtc": {
"minLength": 1,
"type": "string",
"description": "End of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format."
},
"ReleasedUtc": {
"type": "string",
"description": "The moment when the block and its availability is released, in UTC timezone ISO 8601 format. Takes precedence over `RollingReleaseOffset`.",
"format": "date-time",
"nullable": true
},
"RollingReleaseOffset": {
"type": "string",
"description": "Exact offset from the start of availability adjustments to the moment the availability adjustment should be released, in ISO 8601 duration format. Ignored if `ReleasedUtc` is specified.",
"nullable": true
},
"Name": {
"type": "string",
"description": "The name of the block.",
"nullable": true
},
"VoucherCode": {
"type": "string",
"description": "Voucher code providing access to specified private [Rate](https://mews-systems.gitbook.io/connector-api/operations/rates#rate).",
"nullable": true
},
"BookerId": {
"type": "string",
"description": "Unique identifier of the Booker as a creator of an availability block.",
"format": "uuid",
"nullable": true
},
"CompanyId": {
"type": "string",
"description": "Unique identifier of [Company](https://mews-systems.gitbook.io/connector-api/operations/companies#company).",
"format": "uuid",
"nullable": true
},
"TravelAgencyId": {
"type": "string",
"description": "Unique identifier of travel agency (`Company` with a `TravelAgencyContract`).",
"format": "uuid",
"nullable": true
},
"Budget": {
"title": "Currency value (ver 2018-06-07)",
"allOf": [
{
"$ref": "#/components/schemas/CurrencyValueOld"
}
],
"description": "The tentative budget for the total price of reservations.",
"nullable": true
},
"ReservationPurpose": {
"allOf": [
{
"$ref": "#/components/schemas/ReservationPurposeEnum"
}
],
"description": "The purpose of the block.\n\nLeisure\n\nBusiness\n\nStudent",
"nullable": true
},
"ExternalIdentifier": {
"maxLength": 255,
"type": "string",
"description": "Identifier of the block from external system.",
"nullable": true
},
"Notes": {
"type": "string",
"description": "Additional notes of the block.",
"nullable": true
},
"State": {
"allOf": [
{
"$ref": "#/components/schemas/AvailabilityBlockStateEnum"
}
],
"description": "State of the availability block.\n\nConfirmed (The block deducts availability and can have reservations assigned.)\n\nOptional (The block deducts availability and cannot have reservations assigned.)\n\nInquired (The block does not deduct availability and cannot have reservations assigned (waitlist).)\n\nCanceled (The block does not deduct availability and cannot have reservations assigned (waitlist).)"
},
"QuoteId": {
"type": "string",
"description": "Unique identifier of the Mews Events quote associated with the availability block.",
"format": "uuid",
"nullable": true
},
"PurchaseOrderNumber": {
"type": "string",
"description": "Unique number of the purchase order. This number is propagated to any newly picked up `Reservation` within the block.",
"nullable": true
},
"BusinessSegmentId": {
"type": "string",
"description": "Unique identifier of the business segment.",
"format": "uuid",
"nullable": true
},
"PickupDistribution": {
"allOf": [
{
"$ref": "#/components/schemas/PickupDistributionEnum"
}
],
"description": "Specifies how reservations within the block are distributed for pickup. Defaults to `AllInOneGroup` if not provided. This value cannot be updated after creation.\n\nAllInOneGroup (All created reservations in the block are added to the same reservation group.)\n\nIndividualGroups (Reservations can be picked up in multiple groups, with up to 750 reservations per group.)",
"nullable": true
}
},
"additionalProperties": false,
"x-schema-id": "AvailabilityBlockAddParameters"
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mews-availabilityblockaddparameters"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.